[前][次][番号順一覧][スレッド一覧]

ruby-changes:61396

From: Takashi <ko1@a...>
Date: Wed, 27 May 2020 15:32:53 +0900 (JST)
Subject: [ruby-changes:61396] 9d71373c23 (master): Mark vm_stackoverflow as NOINLINE COLDFUNC on JIT

https://git.ruby-lang.org/ruby.git/commit/?id=9d71373c23

From 9d71373c237876038cbac63bb0132907a78288a2 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Tue, 26 May 2020 23:22:19 -0700
Subject: Mark vm_stackoverflow as NOINLINE COLDFUNC on JIT

to reduce code size and improve locality of hot code.

diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 06e6a57..cb55d0f 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -65,6 +65,9 @@ ec_stack_overflow(rb_execution_context_t *ec, int setup) https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L65
 }
 
 NORETURN(static void vm_stackoverflow(void));
+#ifdef MJIT_HEADER
+NOINLINE(static COLDFUNC void vm_stackoverflow(void));
+#endif
 
 static void
 vm_stackoverflow(void)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]