diff options
| author | fleuria <[email protected]> | 2013-08-09 14:37:47 +0800 |
|---|---|---|
| committer | fleuria <[email protected]> | 2013-08-09 15:43:06 +0800 |
| commit | 7e7943322b2b9ba0969422a5e84e877eebc7c81a (patch) | |
| tree | 9c42c6041b0eb590a248233ffa2ef8191d432c28 /src | |
| parent | d6b8e4bbcb353f08d080174269d3e2a8a6860135 (diff) | |
| download | mruby-7e7943322b2b9ba0969422a5e84e877eebc7c81a.tar.gz mruby-7e7943322b2b9ba0969422a5e84e877eebc7c81a.zip | |
add comments for major GC
Diffstat (limited to 'src')
| -rw-r--r-- | src/gc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } |
