In the GARBAGE-COLLECT primitive, return the available heap space
authorTaylor R. Campbell <net/mumble/campbell>
Sat, 10 Feb 2007 19:17:38 +0000 (19:17 +0000)
committerTaylor R. Campbell <net/mumble/campbell>
Sat, 10 Feb 2007 19:17:38 +0000 (19:17 +0000)
commitd0b8d91ea53aac73cef2194d93414b6165ad78e8
tree3af402e300b7558bb2a91a9d0590b19f561ead28
parent19fac1fbe1d8a47e19bd6fc476bcbbb53b16099f
In the GARBAGE-COLLECT primitive, return the available heap space
minus gc_space_needed, in case it was called by a primitive that
requested a certain amount of space for allocation.  If we report only
the newly available heap space and ignore gc_space_needed, then
GC-FINISH will consider there to be ample space to proceed (more than
4096 bytes), and the primitive will be restarted only to repeat the
call to the GC, looping endlessly.
v7/src/microcode/bchmmg.c
v7/src/microcode/memmag.c