Added notes

This commit is contained in:
Justin Ethier 2015-11-11 02:48:50 -05:00
parent ca27d4a5d4
commit 0db95aa1c5

8
gc.c
View file

@ -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 update the heap functions to be thread safe. ideally want to
try to minimize amount of locking - IE, lock on individual ops try to minimize amount of locking - IE, lock on individual ops
IF POSSIBLE, instead of whole operations like 'alloc' and 'sweep'. 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 : //sweep :
// TODO: For each object x in the heap: // TODO: For each object x in the heap: