chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Garbage collection


From: Zbigniew
Subject: [Chicken-users] Garbage collection
Date: Sat, 21 May 2005 16:26:53 -0500

I was wondering if csi keeps some kind of hidden reference to objects
you create.  Heap memory never seems to get freed, as shown below. 
Running this code as an executable, or compiling it into a shared
library and running that in csi, does free the memory.

#;1> (memory-statistics)
#(500000 440840 131072)
#;2> (make-vector 1000000)
#;3> (memory-statistics)
#(14000012 11190866 131072)
#;4> (gc)
2809142
#;5> (memory-statistics)
#(14000012 11190882 131072)
#;6> (make-vector 1000000)
#;7> (memory-statistics)
#(32000028 24190910 131072)
#;8> (gc)
7809114
#;9> (memory-statistics)
#(32000028 24190910 131072)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]