Can anyone help?

The garbage collector does not free the 100M allocated by the following 
construct:

(dotimes (x 1000000) (setf (symbol-function (gensym)) (lambda (x) x)))

In contrast, the garbage collector does free the memory allocated by

(dotimes (x 1000000) (setf (symbol-value (gensym)) (lambda (x) x)))

Are the gensyms in the first example accessible from somewhere?

Is there a way to garbage collect them?

Cheers,
Klaus


Reply via email to