Node:Garbage Collection, Next:, Up:Memory Management

29.1 Garbage Collection

gc Scheme Procedure
scm_gc () C Function
Scans all of SCM objects and reclaims for further use those that are no longer accessible. You normally don't need to call this function explicitly. It is called automatically when appropriate.

gc-stats Scheme Procedure
scm_gc_stats () C Function
Return an association list of statistics about Guile's current use of storage.

object-address obj Scheme Procedure
scm_object_address (obj) C Function
Return an integer that for the lifetime of obj is uniquely returned by this function for obj

unhash-name name Scheme Procedure
Flushes the glocs for name, or all glocs if name is #t.

malloc-stats Scheme Procedure
Return an alist ((what . n) ...) describing number of malloced objects. what is the second argument to scm_must_malloc, n is the number of objects of that type currently allocated.