diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-09-16 16:09:46 -0700 |
---|---|---|
committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-09-26 13:56:41 -0700 |
commit | a618d6408653b7f2459acb5af6205c42ad3aad87 (patch) | |
tree | d0dd9a4b10fcbd255f21733a6464aa8ce75d1104 /compile.c | |
parent | 3cd8f76f7f1bc09f9dd6b65eaafe2fd3a990ac60 (diff) | |
download | ruby-a618d6408653b7f2459acb5af6205c42ad3aad87.tar.gz |
Allocate `INSN *` out of a separate arena
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 * |