From 4724bf856f30e8cc56795c0dc23b96e7ae68e874 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sun, 3 Jan 2021 00:05:00 -0800 Subject: Avoid hanging on --jit-wait after MJIT.pause When a worker is stopped, nobody will JIT a method for you. --- mjit_worker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mjit_worker.c') 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; -- cgit v1.2.3