summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-10 09:15:21 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-10 09:15:21 +0000
commit25c1fd3b9037d9eb39596bb994eeabed812adada (patch)
treed50105485a5d01efee139d56b3c570561adfff97 /compile.c
parent0cc2ffbc1bf135a3b7a8656b9242e87b1ad96d6c (diff)
Reverting all commits from r67479 to r67496 because of CI failures
Because hard to specify commits related to r67479 only. So please commit again. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/compile.c b/compile.c
index e937c337e6..46b8217e7e 100644
--- a/compile.c
+++ b/compile.c
@@ -574,7 +574,6 @@ static int
iseq_add_mark_object_compile_time(const rb_iseq_t *iseq, VALUE v)
{
if (!SPECIAL_CONST_P(v)) {
- rb_gc_writebarrier((VALUE)iseq, v);
rb_ary_push(ISEQ_COMPILE_DATA(iseq)->mark_ary, v);
}
return COMPILE_OK;
@@ -584,7 +583,6 @@ static inline VALUE
freeze_literal(rb_iseq_t *iseq, VALUE lit)
{
lit = rb_fstring(lit);
- rb_gc_writebarrier((VALUE)iseq, lit);
rb_ary_push(ISEQ_COMPILE_DATA(iseq)->mark_ary, lit);
return lit;
}
@@ -1366,10 +1364,12 @@ iseq_set_exception_local_table(rb_iseq_t *iseq)
/* TODO: every id table is same -> share it.
* Current problem is iseq_free().
*/
+ ID id_dollar_bang;
ID *ids = (ID *)ALLOC_N(ID, 1);
+ CONST_ID(id_dollar_bang, "#$!");
iseq->body->local_table_size = 1;
- ids[0] = idERROR_INFO;
+ ids[0] = id_dollar_bang;
iseq->body->local_table = ids;
return COMPILE_OK;
}