Added note

This commit is contained in:
Justin Ethier 2015-10-29 21:53:21 -04:00
parent 2a226d376f
commit b3af3aff73

2
gc.c
View file

@ -544,6 +544,8 @@ void gc_mark_black(object obj)
// Gray any child objects // Gray any child objects
// Note we probably should use some form of atomics/synchronization // Note we probably should use some form of atomics/synchronization
// for cons and vector types, as these pointers could change. // for cons and vector types, as these pointers could change.
// Also this is a case for adding the stack/heap bit, because these could
// be stack objects if a thread issued an update.
switch(type_of(obj)) { switch(type_of(obj)) {
case cons_tag: { case cons_tag: {
gc_collector_mark_gray(car(obj)); gc_collector_mark_gray(car(obj));