From 8945773e1ce8359fd3ed4455de32931fb977adfd Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Thu, 19 Nov 2015 23:09:27 -0500 Subject: [PATCH] Added notes --- gc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gc.c b/gc.c index 480d7b51..9b2cc8a0 100644 --- a/gc.c +++ b/gc.c @@ -1091,6 +1091,13 @@ void *collector_main(void *arg) // this is inefficient but it should be good enough to // at least stand up this collector. then we'll have to // come back and improve it +// +// some ideas: +// - maybe check amount of free space in heap, and collect if less than a certain amount/percentage. +// otherwise just sleep for awhile and check again. +// once that works, might consider a way to let a mutator alert the collector that it should kick off +// - after collection, maybe grow heap if usage is above a certain percentage +// // sleep(1); } }