ruby-changes:52960
From: k0kubun <ko1@a...>
Date: Fri, 19 Oct 2018 22:47:12 +0900 (JST)
Subject: [ruby-changes:52960] k0kubun:r65174 (trunk): mjit_worker.c: don't compile more than max_cache_size
k0kubun 2018-10-19 22:47:02 +0900 (Fri, 19 Oct 2018) New Revision: 65174 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65174 Log: mjit_worker.c: don't compile more than max_cache_size Prior to this commit, max_cache_size + 1 methods could be active. Modified files: trunk/mjit_worker.c Index: mjit_worker.c =================================================================== --- mjit_worker.c (revision 65173) +++ mjit_worker.c (revision 65174) @@ -1187,7 +1187,7 @@ mjit_worker(void) https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L1187 /* wait until unit is available */ CRITICAL_SECTION_START(3, "in worker dequeue"); - while ((unit_queue.head == NULL || active_units.length > mjit_opts.max_cache_size) && !stop_worker_p) { + while ((unit_queue.head == NULL || active_units.length >= mjit_opts.max_cache_size) && !stop_worker_p) { rb_native_cond_wait(&mjit_worker_wakeup, &mjit_engine_mutex); verbose(3, "Getting wakeup from client"); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/