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

ruby-changes:68640

From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:11:26 +0900 (JST)
Subject: [ruby-changes:68640] 6f4d17d622 (master): Never compile with MicroJIT when MJIT is enabled

https://git.ruby-lang.org/ruby.git/commit/?id=6f4d17d622

From 6f4d17d62236460fd5aa9d07fea4d6794f27c397 Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Mon, 19 Oct 2020 10:41:26 -0400
Subject: Never compile with MicroJIT when MJIT is enabled

There is a crash in there that we don't want to worry about for now.
---
 mjit.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mjit.h b/mjit.h
index d887e7df5c..b9cbf37a19 100644
--- a/mjit.h
+++ b/mjit.h
@@ -153,7 +153,7 @@ mjit_exec(rb_execution_context_t *ec) https://github.com/ruby/ruby/blob/trunk/mjit.h#L153
 
 #ifndef MJIT_HEADER
     const int ujit_call_threashold = 10;
-    if (body->total_calls == ujit_call_threashold) {
+    if (body->total_calls == ujit_call_threashold && !mjit_call_p) {
         rb_ujit_compile_iseq(iseq);
     }
 #endif
-- 
cgit v1.2.1


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

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