ruby-changes:57964
From: Aaron <ko1@a...>
Date: Fri, 27 Sep 2019 06:52:56 +0900 (JST)
Subject: [ruby-changes:57964] 9b6460cacc (master): Remove mark array
https://git.ruby-lang.org/ruby.git/commit/?id=9b6460cacc From 9b6460caccc125be6ba9f2dace9eaafbbe5bc438 Mon Sep 17 00:00:00 2001 From: Aaron Patterson <tenderlove@r...> Date: Wed, 25 Sep 2019 14:57:25 -0700 Subject: Remove mark array We don't use this array anymore so we can remove it diff --git a/iseq.c b/iseq.c index f76b350..03fe1dd 100644 --- a/iseq.c +++ b/iseq.c @@ -339,9 +339,6 @@ rb_iseq_mark(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/iseq.c#L339 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, https://github.com/ruby/ruby/blob/trunk/iseq.c#L556 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(); diff --git a/iseq.h b/iseq.h index f1d446c..5d24b81 100644 --- a/iseq.h +++ b/iseq.h @@ -90,7 +90,6 @@ ISEQ_ORIGINAL_ISEQ_ALLOC(const rb_iseq_t *iseq, long size) https://github.com/ruby/ruby/blob/trunk/iseq.h#L90 struct iseq_compile_data { /* GC is needed */ const VALUE err_info; - VALUE mark_ary; const VALUE catch_table_ary; /* Array */ /* GC is not needed */ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/