summaryrefslogtreecommitdiffstats
path: root/txr.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-09-06 10:57:43 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-09-06 10:57:43 -0700
commit049d706978ccff755ac717456772d4d6a6c0b77f (patch)
treefea200043bb2d6254e066693e7fa6805076cbbae /txr.h
parent373fc643da68c080dd83c0cc7cf28a93bad5d7ea (diff)
downloadtxr-049d706978ccff755ac717456772d4d6a6c0b77f.tar.gz
txr-049d706978ccff755ac717456772d4d6a6c0b77f.tar.bz2
txr-049d706978ccff755ac717456772d4d6a6c0b77f.zip
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.
Diffstat (limited to 'txr.h')
0 files changed, 0 insertions, 0 deletions