Added TODO

This commit is contained in:
Justin Ethier 2015-11-10 22:34:48 -05:00
parent 62a9efc1f5
commit ca27d4a5d4

6
gc.c
View file

@ -709,6 +709,12 @@ void gc_collector()
//trace : //trace :
gc_collector_trace(); gc_collector_trace();
gc_stage = STAGE_SWEEPING; gc_stage = STAGE_SWEEPING;
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'.
//
//sweep : //sweep :
// TODO: For each object x in the heap: // TODO: For each object x in the heap:
// TODO: if (color(x) = clearColor) // TODO: if (color(x) = clearColor)