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:
Takashi Kokubun 2025-04-04 09:06:56 -07:00
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
View file

@ -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.