summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-05-29 10:32:42 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-05-29 10:32:42 +0900
commit9f634a6f8b78ac9099238407cf15d4abca9b808c (patch)
tree2484f4c4126ddd0124d16c22eae93e54840b39d1 /src
parent8e390cccaef082e2b5034a8147dd62bd2391da25 (diff)
downloadmruby-9f634a6f8b78ac9099238407cf15d4abca9b808c.tar.gz
mruby-9f634a6f8b78ac9099238407cf15d4abca9b808c.zip
Mark the current context (not root) in final marking.
Diffstat (limited to 'src')
-rw-r--r--src/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gc.c b/src/gc.c
index c326e38f9..76687dad0 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -993,7 +993,7 @@ incremental_marking_phase(mrb_state *mrb, mrb_gc *gc, size_t limit)
static void
final_marking_phase(mrb_state *mrb, mrb_gc *gc)
{
- mark_context(mrb, mrb->root_c);
+ mark_context(mrb, mrb->c);
gc_mark_gray_list(mrb, gc);
mrb_assert(gc->gray_list == NULL);
gc->gray_list = gc->atomic_gray_list;