From 5e31f7218fc1fccbfffc30119b67313ba257c069 Mon Sep 17 00:00:00 2001 From: Theresa Mammarella Date: Thu, 7 Nov 2024 10:58:52 -0500 Subject: [PATCH] Add Xdump to diagnose intermittent JSR166TestCase failures Signed-off-by: Theresa Mammarella --- test/jdk/java/util/concurrent/tck/JSR166TestCase.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java index 19897fa0785..784b160b134 100644 --- a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java +++ b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java @@ -39,7 +39,7 @@ * @summary Conformance testing variant of JSR-166 tck tests. * @build * * @modules java.management java.base/jdk.internal.util - * @run junit/othervm/timeout=1000 JSR166TestCase + * @run junit/othervm/timeout=1000 -Xdump:system+java+snap:events=systhrow,filter=java/lang/Exception,msg_filter=*JUnit* JSR166TestCase */ /* @@ -48,7 +48,7 @@ * with java security manager set to allow. * @build * * @modules java.management java.base/jdk.internal.util - * @run junit/othervm/timeout=1000 -Djava.security.manager=allow JSR166TestCase + * @run junit/othervm/timeout=1000 -Xdump:system+java+snap:events=systhrow,filter=java/lang/Exception,msg_filter=*JUnit* -Djava.security.manager=allow JSR166TestCase */ /* @@ -62,6 +62,7 @@ * --add-opens java.base/java.lang=ALL-UNNAMED * -Djsr166.testImplementationDetails=true * -Djava.util.concurrent.ForkJoinPool.common.parallelism=0 + * -Xdump:system+java+snap:events=systhrow,filter=java/lang/Exception,msg_filter=*JUnit* * JSR166TestCase * @run junit/othervm/timeout=1000 * --add-opens java.base/java.util.concurrent=ALL-UNNAMED @@ -69,6 +70,7 @@ * -Djsr166.testImplementationDetails=true * -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 * -Djava.util.secureRandomSeed=true + * -Xdump:system+java+snap:events=systhrow,filter=java/lang/Exception,msg_filter=*JUnit* * JSR166TestCase */ @@ -83,11 +85,13 @@ * --add-opens java.base/java.util.concurrent=ALL-UNNAMED * --add-opens java.base/java.lang=ALL-UNNAMED * -Djsr166.testImplementationDetails=true + * -Xdump:system+java+snap:events=systhrow,filter=java/lang/Exception,msg_filter=*JUnit* * JSR166TestCase * @run junit/othervm/timeout=1000/policy=tck.policy * --add-opens java.base/java.util.concurrent=ALL-UNNAMED * --add-opens java.base/java.lang=ALL-UNNAMED * -Djsr166.testImplementationDetails=true + * -Xdump:system+java+snap:events=systhrow,filter=java/lang/Exception,msg_filter=*JUnit* * JSR166TestCase */