mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
Implement --ujit-call-threshold
This commit is contained in:
parent
58657b33e7
commit
0710bec01e
4 changed files with 31 additions and 17 deletions
2
mjit.h
2
mjit.h
|
@ -150,7 +150,7 @@ mjit_exec(rb_execution_context_t *ec)
|
|||
}
|
||||
|
||||
#ifndef MJIT_HEADER
|
||||
if (rb_ujit_enabled_p() && !mjit_call_p && body->total_calls == UJIT_CALL_THRESHOLD) {
|
||||
if (rb_ujit_enabled_p() && !mjit_call_p && body->total_calls == rb_ujit_call_threshold()) {
|
||||
rb_ujit_compile_iseq(iseq);
|
||||
return Qundef;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue