< prev index next >

test/hotspot/jtreg/runtime/ErrorHandling/ThreadsListHandleInErrorHandlingTest.java

Print this page
rev 47862 : imported patch 10.07.open.rebase_20171110.dcubed
rev 47867 : coleenp CR: Change ThreadsList::_threads from 'mtGC' -> 'mtThread', add header comment to threadSMR.hpp file, cleanup JavaThreadIteratorWithHandle ctr, make ErrorHandling more efficient.

@@ -31,10 +31,11 @@
 import jdk.test.lib.Platform;
 import jdk.test.lib.process.ProcessTools;
 
 /*
  * @test
+ * @requires (vm.debug == true)
  * @bug 8167108
  * @summary ThreadsListHandle info should be in error handling output.
  * @modules java.base/jdk.internal.misc
  * @library /test/lib
  * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+EnableThreadSMRStatistics ThreadsListHandleInErrorHandlingTest

@@ -45,15 +46,11 @@
  * as a guide.
  */
 public class ThreadsListHandleInErrorHandlingTest {
   public static void main(String[] args) throws Exception {
 
-    if (!Platform.isDebugBuild()) {
-        // -XX:ErrorHandlerTest=N option requires debug bits.
-        return;
-    }
-
+    // The -XX:ErrorHandlerTest=N option requires debug bits.
     ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
         "-XX:+UnlockDiagnosticVMOptions",
         "-Xmx100M",
         "-XX:ErrorHandlerTest=16",
         "-XX:-CreateCoredumpOnCrash",
< prev index next >