Skip to content

Commit

Permalink
Do not throttle the workaround for --jit-wait
Browse files Browse the repository at this point in the history
--jit-wait CI can be stuck when the workaround is throttled
http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3274091
  • Loading branch information
k0kubun committed Nov 29, 2020
1 parent fd329e2 commit dbdeb92
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mjit_worker.c
Expand Up @@ -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);
Expand Down

0 comments on commit dbdeb92

Please sign in to comment.