Pause an MJIT worker when JIT is cancelled
This commit is contained in:
parent
b3f8c491ef
commit
b64f81c817
2
NEWS.md
2
NEWS.md
@ -179,6 +179,8 @@ Excluding feature bug fixes.
|
|||||||
* `--jit-verbose` and `--jit-warning` output "JIT cancel" when JIT-ed
|
* `--jit-verbose` and `--jit-warning` output "JIT cancel" when JIT-ed
|
||||||
code is disabled because TracePoint or GC.compact is used.
|
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]]
|
* `RubyVM::MJIT` is renamed to `RubyVM::JIT`. [[Feature #17490]]
|
||||||
|
|
||||||
## Static analysis
|
## Static analysis
|
||||||
|
3
mjit.c
3
mjit.c
@ -91,6 +91,9 @@ mjit_cancel_all(const char *reason)
|
|||||||
if (mjit_opts.warnings || mjit_opts.verbose) {
|
if (mjit_opts.warnings || mjit_opts.verbose) {
|
||||||
fprintf(stderr, "JIT cancel: Disabled JIT-ed code because %s\n", reason);
|
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
|
// Deal with ISeq movement from compactor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user