[oracle@oraclelinux6 deadlock.discovery]$ . run.sh java version "9-internal" Java(TM) SE Runtime Environment (build 9-internal+0-2017-04-19-201646.oracle.dev) Java HotSpot(TM) 64-Bit Server VM (build 9-internal+0-2017-04-19-201646.oracle.dev, mixed mode) ========================= Setup maven path ====================== ========================= Remove stale maven repo for jcstress ====================== ========================= Create a maven project ====================== [WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] 'proxies.proxy.id' must be unique but found duplicate proxy with id default @ /home/oracle/apache-maven-3.3.9/conf/settings.xml [WARNING] [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-archetype-plugin:2.4:generate (default-cli) > generate-sources @ standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:2.4:generate (default-cli) < generate-sources @ standalone-pom <<< [INFO] [INFO] --- maven-archetype-plugin:2.4:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Batch mode [INFO] Archetype repository not defined. Using the one from [org.openjdk.jcstress:jcstress-java-test-archetype:0.3] found in catalog remote Downloading: https://repo.maven.apache.org/maven2/org/openjdk/jcstress/jcstress-java-test-archetype/0.3/jcstress-java-test-archetype-0.3.jar Downloaded: https://repo.maven.apache.org/maven2/org/openjdk/jcstress/jcstress-java-test-archetype/0.3/jcstress-java-test-archetype-0.3.jar (13 KB at 8.4 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/openjdk/jcstress/jcstress-java-test-archetype/0.3/jcstress-java-test-archetype-0.3.pom Downloaded: https://repo.maven.apache.org/maven2/org/openjdk/jcstress/jcstress-java-test-archetype/0.3/jcstress-java-test-archetype-0.3.pom (4 KB at 9.8 KB/sec) [INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating project from Archetype: jcstress-java-test-archetype:0.3 [INFO] ---------------------------------------------------------------------------- [INFO] Parameter: groupId, Value: org.sample [INFO] Parameter: artifactId, Value: test [INFO] Parameter: version, Value: 1.0 [INFO] Parameter: package, Value: org.sample [INFO] Parameter: packageInPathFormat, Value: org/sample [INFO] Parameter: package, Value: org.sample [INFO] Parameter: groupId, Value: org.sample [INFO] Parameter: artifactId, Value: test [INFO] Parameter: version, Value: 1.0 [INFO] project created from Archetype in dir: /home/oracle/workspace/Workspace/MyPlayground/JCStress/deadlock.discovery/test [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.453 s [INFO] Finished at: 2017-05-04T02:33:07-07:00 [INFO] Final Memory: 15M/51M [INFO] ------------------------------------------------------------------------ ========================= Copy source file to maven project ====================== ========================= Build the maven project we just created ====================== [WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] 'proxies.proxy.id' must be unique but found duplicate proxy with id default @ /home/oracle/apache-maven-3.3.9/conf/settings.xml [WARNING] [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building JCStress test sample 1.0 [INFO] ------------------------------------------------------------------------ Downloading: https://repo.maven.apache.org/maven2/org/openjdk/jcstress/jcstress-core/0.3/jcstress-core-0.3.pom Downloaded: https://repo.maven.apache.org/maven2/org/openjdk/jcstress/jcstress-core/0.3/jcstress-core-0.3.pom (8 KB at 4.7 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/openjdk/jcstress/jcstress-parent/0.3/jcstress-parent-0.3.pom Downloaded: https://repo.maven.apache.org/maven2/org/openjdk/jcstress/jcstress-parent/0.3/jcstress-parent-0.3.pom (12 KB at 25.6 KB/sec) Downloading: https://repo.maven.apache.org/maven2/org/openjdk/jcstress/jcstress-core/0.3/jcstress-core-0.3.jar Downloaded: https://repo.maven.apache.org/maven2/org/openjdk/jcstress/jcstress-core/0.3/jcstress-core-0.3.jar (1022 KB at 575.4 KB/sec) [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ test --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ test --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/oracle/workspace/Workspace/MyPlayground/JCStress/deadlock.discovery/test/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ test --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 2 source files to /home/oracle/workspace/Workspace/MyPlayground/JCStress/deadlock.discovery/test/target/classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ test --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/oracle/workspace/Workspace/MyPlayground/JCStress/deadlock.discovery/test/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ test --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ test --- [INFO] No tests to run. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ test --- [INFO] Building jar: /home/oracle/workspace/Workspace/MyPlayground/JCStress/deadlock.discovery/test/target/test-1.0.jar [INFO] [INFO] --- maven-shade-plugin:2.2:shade (main) @ test --- [INFO] Including org.openjdk.jcstress:jcstress-core:jar:0.3 in the shaded jar. [INFO] Including net.sf.jopt-simple:jopt-simple:jar:4.6 in the shaded jar. [INFO] Replacing /home/oracle/workspace/Workspace/MyPlayground/JCStress/deadlock.discovery/test/target/jcstress.jar with /home/oracle/workspace/Workspace/MyPlayground/JCStress/deadlock.discovery/test/target/test-1.0-shaded.jar [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ test --- [INFO] Installing /home/oracle/workspace/Workspace/MyPlayground/JCStress/deadlock.discovery/test/target/test-1.0.jar to /home/oracle/.m2/repository/org/sample/test/1.0/test-1.0.jar [INFO] Installing /home/oracle/workspace/Workspace/MyPlayground/JCStress/deadlock.discovery/test/pom.xml to /home/oracle/.m2/repository/org/sample/test/1.0/test-1.0.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.343 s [INFO] Finished at: 2017-05-04T02:33:20-07:00 [INFO] Final Memory: 21M/69M [INFO] ------------------------------------------------------------------------ ========================= Running maven project we just built ====================== Java Concurrency Stress Tests --------------------------------------------------------------------------------- Rev: null, built by oracle with 9-internal at null Probing what VM modes are available: (failures are non-fatal, but may miss some interesting cases) ----- [OK] [-Xint] ----- [OK] [-XX:TieredStopAtLevel=1] ----- [OK] [] ----- [OK] [-XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] ----- [OK] [-XX:-TieredCompilation] ----- [OK] [-XX:-TieredCompilation, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Initializing and probing the target VM: (all failures are non-fatal, but may affect testing accuracy) ----- [OK] Unlocking diagnostic VM options ----- [OK] Trimming down the number of compiler threads ----- [OK] Trimming down the number of parallel GC threads ----- [OK] Trimming down the number of concurrent GC threads ----- [OK] Trimming down the number of G1 concurrent refinement GC threads ----- [OK] Testing @Contended works on all results and infra objects ----- [OK] Unlocking Whitebox API for online de-optimization ----- [OK] Testing allocation profiling ----- [OK] Trying Thread.onSpinWait Hardware threads in use/available: 20/20, using Thread.onSpinWait() Test preset mode: "default" Writing the test results to "jcstress-results-2017-05-04-02-33-21.bin.gz" Parsing results to "results/" Running each test matching "InterruptMapDeadlock" for 0 forks, 10 iterations, 360 ms each Each JVM would execute at most 5 tests in the row. Solo stride size will be autobalanced within [10, 10000] elements, but taking no more than 100 Mb. Interruptor thread did not terminate: java.lang.Exception: Stack trace Interruptor thread did not terminate: java.lang.Exception: Stack trace [OK] org.sample.InterruptMapDeadlock (fork: #0, iteration #1, JVM args: []) Observed state Occurrences Expectation Interpretation 0 110 ACCEPTABLE_INTERESTING successfully 1 0 FORBIDDEN Failed Failed Failed Failed !!!!!!!!!!!!!!!! [OK] org.sample.InterruptMapDeadlock (fork: #0, iteration #2, JVM args: []) Observed state Occurrences Expectation Interpretation 0 60 ACCEPTABLE_INTERESTING successfully 1 0 FORBIDDEN Failed Failed Failed Failed !!!!!!!!!!!!!!!! [OK] org.sample.InterruptMapDeadlock (fork: #0, iteration #3, JVM args: []) Observed state Occurrences Expectation Interpretation 0 120 ACCEPTABLE_INTERESTING successfully 1 0 FORBIDDEN Failed Failed Failed Failed !!!!!!!!!!!!!!!! [OK] org.sample.InterruptMapDeadlock (fork: #0, iteration #4, JVM args: []) Observed state Occurrences Expectation Interpretation 0 150 ACCEPTABLE_INTERESTING successfully 1 0 FORBIDDEN Failed Failed Failed Failed !!!!!!!!!!!!!!!! [OK] org.sample.InterruptMapDeadlock (fork: #0, iteration #5, JVM args: []) Observed state Occurrences Expectation Interpretation 0 150 ACCEPTABLE_INTERESTING successfully 1 0 FORBIDDEN Failed Failed Failed Failed !!!!!!!!!!!!!!!! [OK] org.sample.InterruptMapDeadlock (fork: #0, iteration #6, JVM args: []) Observed state Occurrences Expectation Interpretation 0 170 ACCEPTABLE_INTERESTING successfully 1 0 FORBIDDEN Failed Failed Failed Failed !!!!!!!!!!!!!!!! [OK] org.sample.InterruptMapDeadlock (fork: #0, iteration #7, JVM args: []) Observed state Occurrences Expectation Interpretation 0 140 ACCEPTABLE_INTERESTING successfully 1 0 FORBIDDEN Failed Failed Failed Failed !!!!!!!!!!!!!!!! [OK] org.sample.InterruptMapDeadlock (fork: #0, iteration #8, JVM args: []) Observed state Occurrences Expectation Interpretation 0 170 ACCEPTABLE_INTERESTING successfully 1 0 FORBIDDEN Failed Failed Failed Failed !!!!!!!!!!!!!!!! [OK] org.sample.InterruptMapDeadlock (fork: #0, iteration #9, JVM args: []) Observed state Occurrences Expectation Interpretation 0 170 ACCEPTABLE_INTERESTING successfully 1 0 FORBIDDEN Failed Failed Failed Failed !!!!!!!!!!!!!!!! [OK] org.sample.InterruptMapDeadlock (fork: #0, iteration #10, JVM args: []) Observed state Occurrences Expectation Interpretation 0 170 ACCEPTABLE_INTERESTING successfully 1 0 FORBIDDEN Failed Failed Failed Failed !!!!!!!!!!!!!!!! (ETA: now) (Rate: 4.17E+02 samples/sec) (Tests: 1 of 1) (Forks: 1 of 1) (Iterations: 10 of 10; 10 passed, 0 failed, 0 soft errs, 0 hard errs) RUN COMPLETE. RUN RESULTS: ------------------------------------------------------------------------------------------------------------------------ *** INTERESTING tests Some interesting behaviors observed. This is for the plain curiosity. 1 matching test results. [OK] org.sample.InterruptMapDeadlock (JVM args: []) Observed state Occurrences Expectation Interpretation 0 1,410 ACCEPTABLE_INTERESTING successfully 1 0 FORBIDDEN Failed Failed Failed Failed !!!!!!!!!!!!!!!! *** FAILED tests Strong asserts were violated. Correct implementations should have no assert failures here. 0 matching test results. *** ERROR tests Tests break for some reason, other than failing the assert. Correct implementations should have none. 0 matching test results. *** All remaining tests Tests that do not fall into any of the previous categories. 0 matching test results. Use -v to print them. ------------------------------------------------------------------------------------------------------------------------ HTML report was generated. Look at results/index.html for the complete run results. Will throw any pending exceptions at this point. Done.