diff options
author | Takashi Kokubun <[email protected]> | 2020-05-28 22:45:27 -0700 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2020-05-28 22:45:35 -0700 |
commit | 0bd025ad6991f2159ef8bd596a79c89b79f5cc3e (patch) | |
tree | 0eb92a09abc41625272ffa78f4694eeb3b635012 /tool/ruby_vm | |
parent | d300a734414ef6de7e8eb563b7cc4389c455ed08 (diff) |
Add a debug_counter for JIT cancel on leave
Diffstat (limited to 'tool/ruby_vm')
-rw-r--r-- | tool/ruby_vm/views/mjit_compile.inc.erb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/ruby_vm/views/mjit_compile.inc.erb b/tool/ruby_vm/views/mjit_compile.inc.erb index 019994e2dc..c9755454ba 100644 --- a/tool/ruby_vm/views/mjit_compile.inc.erb +++ b/tool/ruby_vm/views/mjit_compile.inc.erb @@ -76,6 +76,7 @@ switch (insn) { fprintf(f, " if (UNLIKELY(RUBY_VM_INTERRUPTED_ANY(ec))) {\n"); fprintf(f, " reg_cfp->sp = vm_base_ptr(reg_cfp) + %d;\n", b->stack_size); fprintf(f, " reg_cfp->pc = original_body_iseq + %d;\n", pos); + fprintf(f, " RB_DEBUG_COUNTER_INC(mjit_cancel_leave);\n"); fprintf(f, " goto cancel;\n"); fprintf(f, " }\n"); fprintf(f, " ec->cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(reg_cfp);\n"); // vm_pop_frame |