diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2020-05-26 23:22:19 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2020-05-26 23:24:58 -0700 |
commit | 9d71373c237876038cbac63bb0132907a78288a2 (patch) | |
tree | f07584d5a6ed79d93567013a4374a60b69a59455 /vm_insnhelper.c | |
parent | 61b14bb32b7e62760225cb2207df5fe87e5339ab (diff) | |
download | ruby-9d71373c237876038cbac63bb0132907a78288a2.tar.gz |
Mark vm_stackoverflow as NOINLINE COLDFUNC on JIT
to reduce code size and improve locality of hot code.
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 06e6a577bc..cb55d0f6c9 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -65,6 +65,9 @@ ec_stack_overflow(rb_execution_context_t *ec, int setup) } NORETURN(static void vm_stackoverflow(void)); +#ifdef MJIT_HEADER +NOINLINE(static COLDFUNC void vm_stackoverflow(void)); +#endif static void vm_stackoverflow(void) |