diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-04 11:36:19 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-06-04 11:36:19 +0900 |
| commit | 8a9e2066c3124f6bcd65d724bd519265a7d6ebe9 (patch) | |
| tree | d33ae9d2a0ef942746c435c8eeb2277e32f083cc | |
| parent | bccd43da7187ecf2ad96d434f2de8ef3e7c94b25 (diff) | |
| download | mruby-8a9e2066c3124f6bcd65d724bd519265a7d6ebe9.tar.gz mruby-8a9e2066c3124f6bcd65d724bd519265a7d6ebe9.zip | |
mark pre-allocated exception
| -rw-r--r-- | src/gc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -705,6 +705,8 @@ root_scan_phase(mrb_state *mrb) mrb_gc_mark(mrb, (struct RBasic*)mrb->top_self); /* mark exception */ mrb_gc_mark(mrb, (struct RBasic*)mrb->exc); + /* mark pre-allocated exception */ + mrb_gc_mark(mrb, (struct RBasic*)mrb->nomem_err); mark_context(mrb, mrb->root_c); if (mrb->root_c->fib) { |
