summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-08-12 23:15:34 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2021-08-12 23:15:34 -0700
commitb64f81c81729bbc248d19af01cafde88eb60fdc7 (patch)
tree0624d3ba3bc514ab9f787745639f0403adec7752 /mjit.c
parentb3f8c491efefc0461ab225d062f6c64286498609 (diff)
Pause an MJIT worker when JIT is cancelled
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mjit.c b/mjit.c
index 57f28476ca..1f90ac0007 100644
--- a/mjit.c
+++ b/mjit.c
@@ -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