From 0db95aa1c5c5e6b643f72270a88f3bf6c86c9fc4 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 11 Nov 2015 02:48:50 -0500 Subject: [PATCH] Added notes --- gc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gc.c b/gc.c index aa29a9a9..2ac825a6 100644 --- a/gc.c +++ b/gc.c @@ -714,6 +714,14 @@ TODO: before updating sweep to make it work w/new GC, need to update the heap functions to be thread safe. ideally want to try to minimize amount of locking - IE, lock on individual ops IF POSSIBLE, instead of whole operations like 'alloc' and 'sweep'. +functions that modify heap: + gc_try_alloc + gc_sweep + gc_grow_heap +think that's it? +consider what is being modified, and what is being read + + // //sweep : // TODO: For each object x in the heap: