From 2299e3126aead2e8f56e2f81fc0b0c821e0d6ba7 Mon Sep 17 00:00:00 2001 From: Babneet Singh Date: Mon, 13 Nov 2023 13:34:45 -0800 Subject: [PATCH] Reduce the number of park and unpark iterations in ParkALot ParkALot launches a number of virtual threads and expects each thread to park and unpark 500_000 times. The test takes a lot of time to execute leading to timeouts in Jenkins testing. The number of park and unpark iterations is reduced to 5_000, which is sufficient to verify functional behaviour. Further, the reduced iterations allow the test to pass in a reasonable time in Jenkins testing. vm.debug is set to false for OpenJ9. So, the vm.debug=true variant is left unmodified. Related: https://github.com/eclipse-openj9/openj9/issues/18444 Signed-off-by: Babneet Singh --- test/jdk/java/lang/Thread/virtual/stress/ParkALot.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/jdk/java/lang/Thread/virtual/stress/ParkALot.java b/test/jdk/java/lang/Thread/virtual/stress/ParkALot.java index ccba3fe1b4d..df04752f36d 100644 --- a/test/jdk/java/lang/Thread/virtual/stress/ParkALot.java +++ b/test/jdk/java/lang/Thread/virtual/stress/ParkALot.java @@ -20,12 +20,17 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ +/* + * =========================================================================== + * (c) Copyright IBM Corp. 2023, 2023 All Rights Reserved + * =========================================================================== + */ /* * @test * @summary Stress test parking and unparking * @requires vm.debug != true - * @run main/othervm ParkALot 500000 + * @run main/othervm ParkALot 5000 */ /*