RFR: 8345294: test/jdk/java/lang/Thread/virtual/RetryMonitorEnterWhenPinned.java timeout with JTREG_TEST_THREAD_FACTORY=Virtual
Viktor Klang
vklang at openjdk.org
Wed Dec 4 16:07:42 UTC 2024
On Wed, 4 Dec 2024 14:03:58 GMT, Doug Lea <dl at openjdk.org> wrote:
> Accommodate compensations when checking for missed signals; add a better test for this.
src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 2016:
> 2014: return awaitWork(w, p); // block, drop, or exit
> 2015: if ((q = qs[k & (n - 1)]) == null)
> 2016: Thread.onSpinWait(); // interleave spins and rechecks
Suggestion:
Thread.onSpinWait();
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22543#discussion_r1869859085
More information about the core-libs-dev
mailing list