From 7e7943322b2b9ba0969422a5e84e877eebc7c81a Mon Sep 17 00:00:00 2001 From: fleuria Date: Fri, 9 Aug 2013 14:37:47 +0800 Subject: add comments for major GC --- src/gc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/gc.c b/src/gc.c index 9ce2615b2..3e3acfdfb 100644 --- a/src/gc.c +++ b/src/gc.c @@ -88,6 +88,9 @@ * Major GC - same as a full regular GC cycle. + the difference between "tranditional" generational GC is that, the major GC + in mruby is triggered incrementally in a tri-color manner. + For details, see the comments for each function. @@ -944,6 +947,7 @@ clear_all_old(mrb_state *mrb) mrb_assert(is_generational(mrb)); if (is_major_gc(mrb)) { + /* finish the half baked GC */ incremental_gc_until(mrb, GC_STATE_NONE); } -- cgit v1.2.3