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
@ -579,7 +579,7 @@ static int
|
|||||||
iseq_add_mark_object_compile_time(const rb_iseq_t *iseq, VALUE v)
|
iseq_add_mark_object_compile_time(const rb_iseq_t *iseq, VALUE v)
|
||||||
{
|
{
|
||||||
if (!SPECIAL_CONST_P(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;
|
return COMPILE_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user