mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
Added function comment for gc_mark_gray2
This commit is contained in:
parent
232498bd8e
commit
b560fda1c2
1 changed files with 8 additions and 0 deletions
8
gc.c
8
gc.c
|
@ -826,6 +826,14 @@ void gc_mark_gray(gc_thread_data *thd, object obj)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a pending write to the mark buffer.
|
||||
* These are pended because they are written in a batch during minor GC.
|
||||
* To prevent race conditions we wait until all of the writes are made before
|
||||
* updating last write.
|
||||
*
|
||||
* TODO: figure out a new name for this function.
|
||||
*/
|
||||
void gc_mark_gray2(gc_thread_data *thd, object obj)
|
||||
{
|
||||
if (is_object_type(obj) && mark(obj) == gc_color_clear) {
|
||||
|
|
Loading…
Add table
Reference in a new issue