RFR: 8316924: java/lang/Thread/virtual/stress/ParkALot.java times out
Viktor Klang
vklang at openjdk.org
Wed Sep 27 09:51:11 UTC 2023
On Wed, 27 Sep 2023 07:47:19 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> A test only change to a stress test for virtual thread parking/unparking to limit execution time on a larger systems. Right run, the test bashes parking/unparking for 1, 2, 3, ... up to the number of half the hardware threads. It is changed to limit it to 4 iterations. It is also dialed down for debug builds as they may run with -XX:+VerifyContinuations which is an expensive assert (but an important one for tests like that).
test/jdk/java/lang/Thread/virtual/stress/ParkALot.java line 91:
> 89: LockSupport.unpark(vthread);
> 90: } else {
> 91: Thread.yield();
👍
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15940#discussion_r1338355392
More information about the core-libs-dev
mailing list