mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Disable ZJIT profiling at call-threshold (https://github.com/Shopify/zjit/pull/99)
* Disable ZJIT profiling at call-threshold * Stop referencing ZJIT instructions in codegen
This commit is contained in:
parent
2915806820
commit
8b72e07359
Notes:
git
2025-04-18 13:47:42 +00:00
7 changed files with 60 additions and 20 deletions
2
vm.c
2
vm.c
|
@ -443,7 +443,7 @@ jit_compile(rb_execution_context_t *ec)
|
|||
// At profile-threshold, rewrite some of the YARV instructions
|
||||
// to zjit_* instructions to profile these instructions.
|
||||
if (body->jit_entry_calls == rb_zjit_profile_threshold) {
|
||||
rb_zjit_profile_iseq(iseq);
|
||||
rb_zjit_profile_enable(iseq);
|
||||
}
|
||||
|
||||
// At call-threshold, compile the ISEQ with ZJIT.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue