diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-09-25 14:08:11 -0700 |
---|---|---|
committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-09-26 13:56:41 -0700 |
commit | e197d9ca71570c980274ddd2cb6a32af6c00d95e (patch) | |
tree | 1475c299cff30e814a0f26294113e0f7df3d507f | |
parent | 98d7583bfcf1442c01ebe0288726cacef138d349 (diff) |
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
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 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; } |