1
0
Fork 0
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:
Aaron Patterson 2019-09-25 14:08:11 -07:00
parent 98d7583bfc
commit e197d9ca71
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6

View file

@ -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;
}