Christopher Laux <christopher.laux@...> writes:
>> Nikodemus Siivola <nikodemus@...> 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)
(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.
-- Nikodemus Schemer: "Buddha is small, clean, and serious."
Lispnik: "Buddha is big, has hairy armpits, and laughs."