From 049d706978ccff755ac717456772d4d6a6c0b77f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 6 Sep 2014 10:57:43 -0700 Subject: Make the garbage collector aware of malloced bytes, to prevent skyrocketing memory use when the program manipulates heap objects that have large amounts of malloc memory attached, like very large bignums. * gc.c (MALLOC_DELTA_THRESH): New preprocessor symbol. (prev_malloc_bytes): New static variable. (make_obj): when the value of malloc_bytes jumps by MALLOC_DELTA_THRESH or more since the last gc, trigger gc. --- ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index eb578f74..f23f8107 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2014-09-06 Kaz Kylheku + + Make the garbage collector aware of malloced bytes, to + prevent skyrocketing memory use when the program manipulates + heap objects that have large amounts of malloc memory + attached, like very large bignums. + + * gc.c (MALLOC_DELTA_THRESH): New preprocessor symbol. + (prev_malloc_bytes): New static variable. + (make_obj): when the value of malloc_bytes jumps by MALLOC_DELTA_THRESH + or more since the last gc, trigger gc. + 2014-09-03 Kaz Kylheku * lib.c (symbol_setname): New static function. -- cgit v1.2.3