From: Nikodemus S. <nik...@ra...> - 2006-08-18 09:27:07
|
Christopher Laux <chr...@we...> writes: >> Nikodemus Siivola <nik...@ra...> writes: >> >> How do you tell the objects you are seeing are not part of SBCL itself? > > I recognize them (strings) as data generated by my application. One easy way to make sure specific things get collected, is to use a counter managed by a finalizer: (defvar *counter* 0) (defun uncount () (decf *counter*)) (defun count-object (object) (incf *counter*) (sb-ext:finalize object #'uncount)) (count-object (make-symbol "FOO")) *counter* => 1 (gc :full t) *counter* => 0 ...of course, finalizer may not get called if the conservativism of the GC makes the object look like a live object. Cheers, -- Nikodemus Schemer: "Buddha is small, clean, and serious." Lispnik: "Buddha is big, has hairy armpits, and laughs." |