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) _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
