diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2020-11-28 18:49:45 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2020-11-28 18:49:47 -0800 |
commit | dbdeb92b6832867ef208130d9a8e7d01df0ccb93 (patch) | |
tree | 4b0fdc7473bf6cfa3f208f5aaf2c29f67e0f7d8a | |
parent | fd329e24c511ce3ff0ed81fd9c88de6cfd5676a9 (diff) | |
download | ruby-dbdeb92b6832867ef208130d9a8e7d01df0ccb93.tar.gz |
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
-rw-r--r-- | mjit_worker.c | 9 |
1 files 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); |