From a618d6408653b7f2459acb5af6205c42ad3aad87 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 16 Sep 2019 16:09:46 -0700 Subject: [PATCH] Allocate `INSN *` out of a separate arena --- compile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compile.c b/compile.c index 0d3492b98b..9ba55e5bc7 100644 --- a/compile.c +++ b/compile.c @@ -889,7 +889,8 @@ compile_data_alloc(rb_iseq_t *iseq, size_t size) static INSN * compile_data_alloc_insn(rb_iseq_t *iseq) { - return (INSN *)compile_data_alloc(iseq, sizeof(INSN)); + struct iseq_compile_data_storage ** arena = &ISEQ_COMPILE_DATA(iseq)->insn.storage_current; + return (INSN *)compile_data_alloc_with_arena(arena, sizeof(INSN)); } static LABEL *