summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-04 11:36:19 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-04 11:36:19 +0900
commit8a9e2066c3124f6bcd65d724bd519265a7d6ebe9 (patch)
treed33ae9d2a0ef942746c435c8eeb2277e32f083cc /src
parentbccd43da7187ecf2ad96d434f2de8ef3e7c94b25 (diff)
downloadmruby-8a9e2066c3124f6bcd65d724bd519265a7d6ebe9.tar.gz
mruby-8a9e2066c3124f6bcd65d724bd519265a7d6ebe9.zip
mark pre-allocated exception
Diffstat (limited to 'src')
-rw-r--r--src/gc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gc.c b/src/gc.c
index a04dc527c..6eb9808e3 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -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) {