From b560fda1c2d4146185213b6636cec3618e1bd26c Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 20 Jan 2016 22:44:30 -0500 Subject: [PATCH] Added function comment for gc_mark_gray2 --- gc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gc.c b/gc.c index fc4c458f..73f1fab6 100644 --- a/gc.c +++ b/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) {