aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-10 03:17:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-10 03:17:30 +0000
commit8f55d83d4b382ba5f37ca2b7d6241d0deb59f9cc (patch)
tree262f07e7067fc7fde41bc5e26cf548e38713d89e /compile.c
parent422c63bd0ec3c977b90c2d5f1f28f31c50786c52 (diff)
downloadruby-8f55d83d4b382ba5f37ca2b7d6241d0deb59f9cc.tar.gz
compile.c: register cdhash
* compile.c (iseq_build_from_ary_body): register cdhash to the iseq constant body instead of compile time mark array, not to get GCed. [ruby-core:70708] [Feature #8543] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index f77dc24282..857d994f4e 100644
--- a/compile.c
+++ b/compile.c
@@ -6048,7 +6048,7 @@ iseq_build_from_ary_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor,
}
RB_GC_GUARD(op);
argv[j] = map;
- iseq_add_mark_object_compile_time(iseq, map);
+ rb_iseq_add_mark_object(iseq, map);
}
break;
case TS_FUNCPTR: