[Bug-openmcl] processes not gc'd?
Erik Pearson
erik at adaptations.com
Sun Feb 29 19:41:07 MST 2004
Hi,
It looks like the creation of threads leads to a lot of memory
allocation that is not recovered by the gc. Here is a small test
function which creates n threads. I've tried it with n of 100, 1000,
10000, etc. and inspected memory allocation with top, and it just grows
and grows...
(defun test (n)
(dotimes (i n)
(process-run-function ""
#'(lambda (j) (+ j j)) i)))
I discovered this when doing a test of a web-site-monitoring tool which
uses threads for timouts, and it eventually crashed.
Erik.
More information about the Bug-openmcl
mailing list