mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove mark array
We don't use this array anymore so we can remove it
This commit is contained in:
parent
e197d9ca71
commit
9b6460cacc
2 changed files with 0 additions and 5 deletions
4
iseq.c
4
iseq.c
|
@ -339,9 +339,6 @@ rb_iseq_mark(const rb_iseq_t *iseq)
|
||||||
|
|
||||||
rb_iseq_mark_insn_storage(compile_data->insn.storage_head);
|
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);
|
RUBY_MARK_UNLESS_NULL(compile_data->err_info);
|
||||||
if (RTEST(compile_data->catch_table_ary)) {
|
if (RTEST(compile_data->catch_table_ary)) {
|
||||||
rb_gc_mark(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);
|
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)->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);
|
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();
|
ISEQ_COMPILE_DATA(iseq)->node.storage_head = ISEQ_COMPILE_DATA(iseq)->node.storage_current = new_arena();
|
||||||
|
|
1
iseq.h
1
iseq.h
|
@ -90,7 +90,6 @@ ISEQ_ORIGINAL_ISEQ_ALLOC(const rb_iseq_t *iseq, long size)
|
||||||
struct iseq_compile_data {
|
struct iseq_compile_data {
|
||||||
/* GC is needed */
|
/* GC is needed */
|
||||||
const VALUE err_info;
|
const VALUE err_info;
|
||||||
VALUE mark_ary;
|
|
||||||
const VALUE catch_table_ary; /* Array */
|
const VALUE catch_table_ary; /* Array */
|
||||||
|
|
||||||
/* GC is not needed */
|
/* GC is not needed */
|
||||||
|
|
Loading…
Reference in a new issue