Allocate INSN * out of a separate arena

This commit is contained in:
Aaron Patterson 2019-09-16 16:09:46 -07:00
parent 3cd8f76f7f
commit a618d64086
No known key found for this signature in database
GPG Key ID: 953170BCB4FFAFC6

View File

@ -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 *