diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-10 03:17:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-10 03:17:30 +0000 |
commit | 8f55d83d4b382ba5f37ca2b7d6241d0deb59f9cc (patch) | |
tree | 262f07e7067fc7fde41bc5e26cf548e38713d89e /compile.c | |
parent | 422c63bd0ec3c977b90c2d5f1f28f31c50786c52 (diff) | |
download | ruby-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |