mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Don't run mjit_cancel_all when MJIT is disabled
This commit is contained in:
parent
b64f81c817
commit
365da4c6ac
1 changed files with 3 additions and 0 deletions
3
mjit.c
3
mjit.c
|
@ -87,6 +87,9 @@ mjit_gc_exit_hook(void)
|
|||
void
|
||||
mjit_cancel_all(const char *reason)
|
||||
{
|
||||
if (!mjit_enabled)
|
||||
return;
|
||||
|
||||
mjit_call_p = false;
|
||||
if (mjit_opts.warnings || mjit_opts.verbose) {
|
||||
fprintf(stderr, "JIT cancel: Disabled JIT-ed code because %s\n", reason);
|
||||
|
|
Loading…
Add table
Reference in a new issue