From dbdeb92b6832867ef208130d9a8e7d01df0ccb93 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sat, 28 Nov 2020 18:49:45 -0800 Subject: Do not throttle the workaround for --jit-wait --jit-wait CI can be stuck when the workaround is throttled http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3274091 --- mjit_worker.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mjit_worker.c b/mjit_worker.c index b8c5886299..725a922e47 100644 --- a/mjit_worker.c +++ b/mjit_worker.c @@ -1369,11 +1369,10 @@ mjit_worker(void) RB_DEBUG_COUNTER_INC(mjit_unload_units); unload_units(); unload_requests = 0; - - if (active_units.length == mjit_opts.max_cache_size && mjit_opts.wait) { // Sometimes all methods may be in use - mjit_opts.max_cache_size++; // avoid infinite loop on `rb_mjit_wait_call`. Note that --jit-wait is just for testing. - verbose(1, "No units can be unloaded -- incremented max-cache-size to %d for --jit-wait", mjit_opts.max_cache_size); - } + } + if (active_units.length == mjit_opts.max_cache_size && mjit_opts.wait) { // Sometimes all methods may be in use + mjit_opts.max_cache_size++; // avoid infinite loop on `rb_mjit_wait_call`. Note that --jit-wait is just for testing. + verbose(1, "No units can be unloaded -- incremented max-cache-size to %d for --jit-wait", mjit_opts.max_cache_size); } } unit = get_from_list(&unit_queue); -- cgit v1.2.3