ruby-changes:57960
From: Aaron <ko1@a...>
Date: Fri, 27 Sep 2019 06:22:53 +0900 (JST)
Subject: [ruby-changes:57960] a618d64086 (master): Allocate `INSN *` out of a separate arena
https://git.ruby-lang.org/ruby.git/commit/?id=a618d64086 From a618d6408653b7f2459acb5af6205c42ad3aad87 Mon Sep 17 00:00:00 2001 From: Aaron Patterson <tenderlove@r...> Date: Mon, 16 Sep 2019 16:09:46 -0700 Subject: Allocate `INSN *` out of a separate arena diff --git a/compile.c b/compile.c index 0d3492b..9ba55e5 100644 --- a/compile.c +++ b/compile.c @@ -889,7 +889,8 @@ compile_data_alloc(rb_iseq_t *iseq, size_t size) https://github.com/ruby/ruby/blob/trunk/compile.c#L889 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 * -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/