mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Execute write barrier instead of adding to array
We can mark everything via the instruction objects, so just execute the write barrier instead of appending to the array
This commit is contained in:
parent
98d7583bfc
commit
e197d9ca71
1 changed files with 1 additions and 1 deletions
|
@ -579,7 +579,7 @@ static int
|
|||
iseq_add_mark_object_compile_time(const rb_iseq_t *iseq, VALUE v)
|
||||
{
|
||||
if (!SPECIAL_CONST_P(v)) {
|
||||
rb_ary_push(ISEQ_COMPILE_DATA(iseq)->mark_ary, v);
|
||||
RB_OBJ_WRITTEN(iseq, Qundef, v);
|
||||
}
|
||||
return COMPILE_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue