From f9fa7d92146a58181f963a2ac4d8deef421d86de Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Mon, 11 Jun 2018 17:59:34 -0400 Subject: [PATCH] Added commend regarding pending writes --- include/cyclone/types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/cyclone/types.h b/include/cyclone/types.h index 47bb8ca5..9ba6d289 100644 --- a/include/cyclone/types.h +++ b/include/cyclone/types.h @@ -294,6 +294,10 @@ struct gc_thread_data_t { int gc_status; int last_write; int last_read; + // Need this because minor GC may still be moving objects to the heap and + // if we try to trace before minor GC is done, some of the objects may be + // missed. So we "pend" them until minor GC is done and we know everything + // is on the heap. int pending_writes; mark_buffer *mark_buffer; int mark_buffer_len;