Skip to content

Commit

Permalink
Add Xdump to diagnose intermittent JSR166TestCase failures
Browse files Browse the repository at this point in the history
Signed-off-by: Theresa Mammarella <[email protected]>
  • Loading branch information
theresa-m committed Nov 11, 2024
1 parent 7bd583d commit 5e31f72
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/jdk/java/util/concurrent/tck/JSR166TestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/*
Expand All @@ -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
*/

/*
Expand All @@ -62,13 +62,15 @@
* --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
* --add-opens java.base/java.lang=ALL-UNNAMED
* -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
*/

Expand All @@ -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
*/

Expand Down

0 comments on commit 5e31f72

Please sign in to comment.