From 50fadefb7ed275148b2266712b923b8cca1ed785 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 16 Sep 2019 17:19:44 -0700 Subject: Scan the ISEQ arena for markables and mark them This commit scans the ISEQ arena for objects that can be marked and marks them. This should make the mark array unnecessary. --- iseq.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index b5417cba19..f76b350056 100644 --- a/iseq.c +++ b/iseq.c @@ -336,6 +336,9 @@ rb_iseq_mark(const rb_iseq_t *iseq) } else if (FL_TEST_RAW(iseq, ISEQ_USE_COMPILE_DATA)) { const struct iseq_compile_data *const compile_data = ISEQ_COMPILE_DATA(iseq); + + rb_iseq_mark_insn_storage(compile_data->insn.storage_head); + if (RTEST(compile_data->mark_ary)) { rb_gc_mark(compile_data->mark_ary); } -- cgit v1.2.3