diff options
author | Takashi Kokubun <[email protected]> | 2021-01-03 00:05:00 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2021-01-03 00:05:38 -0800 |
commit | 4724bf856f30e8cc56795c0dc23b96e7ae68e874 (patch) | |
tree | 501baee61f328889e4d6010feb3308472424f55f /mjit.c | |
parent | 09ec8d686654462e55b2c60e2860754d1fa3435f (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.c')
-rw-r--r-- | mjit.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -328,6 +328,9 @@ mjit_wait(struct rb_iseq_constant_body *body) VALUE rb_mjit_wait_call(rb_execution_context_t *ec, struct rb_iseq_constant_body *body) { + if (worker_stopped) + return Qundef; + mjit_wait(body); if ((uintptr_t)body->jit_func <= (uintptr_t)LAST_JIT_ISEQ_FUNC) { return Qundef; |