Commit 93d2cb02 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1449 from Fleurer/fix-comment-for-major-gc

add comments for major GC
parents d6b8e4bb 7e794332
...@@ -88,6 +88,9 @@ ...@@ -88,6 +88,9 @@
* Major GC - same as a full regular GC cycle. * 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. For details, see the comments for each function.
...@@ -944,6 +947,7 @@ clear_all_old(mrb_state *mrb) ...@@ -944,6 +947,7 @@ clear_all_old(mrb_state *mrb)
mrb_assert(is_generational(mrb)); mrb_assert(is_generational(mrb));
if (is_major_gc(mrb)) { if (is_major_gc(mrb)) {
/* finish the half baked GC */
incremental_gc_until(mrb, GC_STATE_NONE); incremental_gc_until(mrb, GC_STATE_NONE);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment