diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2021-08-12 23:15:34 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2021-08-12 23:15:34 -0700 |
commit | b64f81c81729bbc248d19af01cafde88eb60fdc7 (patch) | |
tree | 0624d3ba3bc514ab9f787745639f0403adec7752 | |
parent | b3f8c491efefc0461ab225d062f6c64286498609 (diff) |
Pause an MJIT worker when JIT is cancelled
-rw-r--r-- | NEWS.md | 2 | ||||
-rw-r--r-- | mjit.c | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -179,6 +179,8 @@ Excluding feature bug fixes. * `--jit-verbose` and `--jit-warning` output "JIT cancel" when JIT-ed code is disabled because TracePoint or GC.compact is used. +* Pause an MJIT worker when JIT-ed code gets disabled. + * `RubyVM::MJIT` is renamed to `RubyVM::JIT`. [[Feature #17490]] ## Static analysis @@ -91,6 +91,9 @@ mjit_cancel_all(const char *reason) if (mjit_opts.warnings || mjit_opts.verbose) { fprintf(stderr, "JIT cancel: Disabled JIT-ed code because %s\n", reason); } + + // Currently we never re-enable JIT calls. Thus we don't need to run JIT anymore. + mjit_pause(false); } // Deal with ISeq movement from compactor |