Adjust consing_since_gc when objects are explicitly freed.
authorDmitry Antipov <dmantipov@yandex.ru>
Sun, 22 Jul 2012 15:13:50 +0000 (19:13 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Sun, 22 Jul 2012 15:13:50 +0000 (19:13 +0400)
commit0dd6d66d56e7133818db361cc853fd1d00f2714b
tree882087f0fb6ee0cc1e1c1c44c8ed86ec2fa44d38
parentd36d71df9c550e69d8a469139714a188f221aea8
Adjust consing_since_gc when objects are explicitly freed.
* alloc.c (GC_DEFAULT_THRESHOLD): New macro.
(Fgarbage_collect): Use it.  Change minimum to 1/10 of default.
(free_cons, free_misc): Subtract object size from consing_since_gc.
src/ChangeLog
src/alloc.c