diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-09-06 18:46:49 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-09-06 22:14:01 -0700 |
commit | 496bdf01e25cb13f0b676d0f23f47bb04907b1f6 (patch) | |
tree | 1e0de77e2d695556960ab6627484d2219553adde /mjit.c | |
parent | f0661bf3a04a3edfe157462f87e2c588dca955ad (diff) |
Adjust pch_status for --mjit=pause
to let mjit_add_iseq_to_process work
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1961,6 +1961,7 @@ mjit_resume(void) if (rb_respond_to(rb_mMJITCompiler, rb_intern("compile"))) { // [experimental] defining RubyVM::MJIT.compile allows you to replace JIT mjit_opts.custom = true; + pch_status = PCH_SUCCESS; } else { // Lazy MJIT boot @@ -2041,7 +2042,7 @@ mjit_finish(bool close_handle_p) mjit_dump_total_calls(); #endif - if (!mjit_opts.save_temps && getpid() == pch_owner_pid && pch_status != PCH_NOT_READY) + if (!mjit_opts.save_temps && getpid() == pch_owner_pid && pch_status == PCH_SUCCESS && !mjit_opts.custom) remove_file(pch_file); xfree(header_file); header_file = NULL; |