From 3d5fd5f30d15359fee223fbcbe1b9e78bd90dcb6 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 10 Sep 2015 03:17:30 +0000 Subject: 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 --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.c') 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: -- cgit v1.2.3