mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Don't call MicroJIT from MJIT output
This commit is contained in:
parent
a245db8df8
commit
ba45aff16b
1 changed files with 2 additions and 0 deletions
2
mjit.h
2
mjit.h
|
@ -151,10 +151,12 @@ mjit_exec(rb_execution_context_t *ec)
|
|||
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)) {
|
||||
|
|
Loading…
Reference in a new issue