path: root/mjit_worker.c
diff options
authorTakashi Kokubun <>2021-01-03 00:05:00 -0800
committerTakashi Kokubun <>2021-01-03 00:05:38 -0800
commit4724bf856f30e8cc56795c0dc23b96e7ae68e874 (patch)
tree501baee61f328889e4d6010feb3308472424f55f /mjit_worker.c
parent09ec8d686654462e55b2c60e2860754d1fa3435f (diff)
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')
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index ea6b896..8939c9b 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;