aboutsummaryrefslogtreecommitdiffstats
path: root/mjit_worker.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-01-03 00:05:00 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2021-01-03 00:05:38 -0800
commit4724bf856f30e8cc56795c0dc23b96e7ae68e874 (patch)
tree501baee61f328889e4d6010feb3308472424f55f /mjit_worker.c
parent09ec8d686654462e55b2c60e2860754d1fa3435f (diff)
downloadruby-4724bf856f30e8cc56795c0dc23b96e7ae68e874.tar.gz
Avoid hanging on --jit-wait after MJIT.pause
When a worker is stopped, nobody will JIT a method for you.
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index ea6b896889..8939c9b927 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -236,7 +236,7 @@ static int total_unloads = 0;
// Set to true to stop worker.
static bool stop_worker_p;
// Set to true if worker is stopped.
-static bool worker_stopped;
+static bool worker_stopped = true;
// Path of "/tmp", which can be changed to $TMP in MinGW.
static char *tmp_dir;