From be9a07551e05e254e2b642471d6115d90f80fa04 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Thu, 10 Dec 2015 23:13:40 -0500 Subject: [PATCH] Added notes --- gc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gc.c b/gc.c index b2de5b01..4095fb25 100644 --- a/gc.c +++ b/gc.c @@ -1166,6 +1166,9 @@ void *collector_main(void *arg) int stage; struct timespec tim; tim.tv_sec = 0; +JAE TODO: this is still not good enough, seems memory grows still grows fast with this. +alternatively, may want to consider shrinking the heap if possible after a collection, if it is +sparse enough (would be difficult to do without relocations, though tim.tv_nsec = 100 * NANOSECONDS_PER_MILLISECOND; while (1) { stage = ATOMIC_GET(&gc_stage);