< prev index next >
test/hotspot/jtreg/runtime/ErrorHandling/NestedThreadsListHandleInErrorHandlingTest.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,40 ****
--- 31,41 ----
import jdk.test.lib.Platform;
import jdk.test.lib.process.ProcessTools;
/*
* @test
+ * @requires (vm.debug == true)
* @bug 8167108
* @summary Nested ThreadsListHandle info should be in error handling output.
* @modules java.base/jdk.internal.misc
* @library /test/lib
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+EnableThreadSMRStatistics NestedThreadsListHandleInErrorHandlingTest
*** 45,59 ****
* as a guide.
*/
public class NestedThreadsListHandleInErrorHandlingTest {
public static void main(String[] args) throws Exception {
! if (!Platform.isDebugBuild()) {
! // -XX:ErrorHandlerTest=N option requires debug bits.
! return;
! }
!
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
"-XX:+UnlockDiagnosticVMOptions",
"-Xmx100M",
"-XX:ErrorHandlerTest=17",
"-XX:-CreateCoredumpOnCrash",
--- 46,56 ----
* as a guide.
*/
public class NestedThreadsListHandleInErrorHandlingTest {
public static void main(String[] args) throws Exception {
! // The -XX:ErrorHandlerTest=N option requires debug bits.
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
"-XX:+UnlockDiagnosticVMOptions",
"-Xmx100M",
"-XX:ErrorHandlerTest=17",
"-XX:-CreateCoredumpOnCrash",
< prev index next >