diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-18 12:39:11 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-18 12:39:11 +0900 |
| commit | 9201af7d36a6537c6d867d2b4386fe443edddcea (patch) | |
| tree | 5f83c11a8773ff10ef806a9b71b5a326731acf11 /src | |
| parent | 2f8dbd8e5de04694ee2c2f7ad50418b184d2a08f (diff) | |
| download | mruby-9201af7d36a6537c6d867d2b4386fe443edddcea.tar.gz mruby-9201af7d36a6537c6d867d2b4386fe443edddcea.zip | |
mark root fiber object; close #1865
Diffstat (limited to 'src')
| -rw-r--r-- | src/gc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -697,6 +697,9 @@ root_scan_phase(mrb_state *mrb) mrb_gc_mark(mrb, (struct RBasic*)mrb->exc); mark_context(mrb, mrb->root_c); + if (mrb->root_c->fib) { + mrb_gc_mark(mrb, (struct RBasic*)mrb->root_c->fib); + } if (mrb->root_c != mrb->c) { mark_context(mrb, mrb->c); } |
