summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2019-09-25 14:57:25 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2019-09-26 13:56:42 -0700
commit9b6460caccc125be6ba9f2dace9eaafbbe5bc438 (patch)
treebb1487ae30b3422f93bf411304a278cc2c6e492f /iseq.c
parente197d9ca71570c980274ddd2cb6a32af6c00d95e (diff)
Remove mark array
We don't use this array anymore so we can remove it
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/iseq.c b/iseq.c
index f76b350056..03fe1ddaab 100644
--- a/iseq.c
+++ b/iseq.c
@@ -339,9 +339,6 @@ rb_iseq_mark(const rb_iseq_t *iseq)
rb_iseq_mark_insn_storage(compile_data->insn.storage_head);
- if (RTEST(compile_data->mark_ary)) {
- rb_gc_mark(compile_data->mark_ary);
- }
RUBY_MARK_UNLESS_NULL(compile_data->err_info);
if (RTEST(compile_data->catch_table_ary)) {
rb_gc_mark(compile_data->catch_table_ary);
@@ -559,7 +556,6 @@ prepare_iseq_build(rb_iseq_t *iseq,
ISEQ_COMPILE_DATA_ALLOC(iseq);
RB_OBJ_WRITE(iseq, &ISEQ_COMPILE_DATA(iseq)->err_info, err_info);
- RB_OBJ_WRITE(iseq, &ISEQ_COMPILE_DATA(iseq)->mark_ary, rb_ary_tmp_new(3));
RB_OBJ_WRITE(iseq, &ISEQ_COMPILE_DATA(iseq)->catch_table_ary, Qnil);
ISEQ_COMPILE_DATA(iseq)->node.storage_head = ISEQ_COMPILE_DATA(iseq)->node.storage_current = new_arena();