ruby-changes:68645
From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:11:41 +0900 (JST)
Subject: [ruby-changes:68645] ba45aff16b (master): Don't call MicroJIT from MJIT output
https://git.ruby-lang.org/ruby.git/commit/?id=ba45aff16b From ba45aff16b1246a3c6b31e9cebb0096fb4e1fcae Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Fri, 16 Oct 2020 13:45:25 -0400 Subject: Don't call MicroJIT from MJIT output --- mjit.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mjit.h b/mjit.h index 413e6f83cc..d887e7df5c 100644 --- a/mjit.h +++ b/mjit.h @@ -151,10 +151,12 @@ mjit_exec(rb_execution_context_t *ec) https://github.com/ruby/ruby/blob/trunk/mjit.h#L151 body = iseq->body; body->total_calls++; +#ifndef MJIT_HEADER const int ujit_call_threashold = 10; if (body->total_calls == ujit_call_threashold) { rb_ujit_compile_iseq(iseq); } +#endif mjit_func_t func = body->jit_func; if (UNLIKELY((uintptr_t)func <= LAST_JIT_ISEQ_FUNC)) { -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/