aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2019-09-16 16:09:46 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2019-09-26 13:56:41 -0700
commita618d6408653b7f2459acb5af6205c42ad3aad87 (patch)
treed0dd9a4b10fcbd255f21733a6464aa8ce75d1104 /compile.c
parent3cd8f76f7f1bc09f9dd6b65eaafe2fd3a990ac60 (diff)
downloadruby-a618d6408653b7f2459acb5af6205c42ad3aad87.tar.gz
Allocate `INSN *` out of a separate arena
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c3
1 files changed, 2 insertions, 1 deletions
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 *