1
0
Fork 0
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:
Takashi Kokubun 2021-08-12 23:19:59 -07:00
parent b64f81c817
commit 365da4c6ac
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

3
mjit.c
View file

@ -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);