# HG changeset patch # User stuefe # Date 1540385961 -7200 # Node ID 487bd00f4ea8f74329138326139c6f132007879d # Parent a083dbe558f78a03774a5b61ff0b7450604ceb85 8212913: (Nested)ThreadsListHandleInErrorHandlingTest need to disable ShowRegistersOnAssert Reviewed-by: dholmes, mdoerr diff -r a083dbe558f7 -r 487bd00f4ea8 test/hotspot/jtreg/runtime/ErrorHandling/NestedThreadsListHandleInErrorHandlingTest.java --- a/test/hotspot/jtreg/runtime/ErrorHandling/NestedThreadsListHandleInErrorHandlingTest.java Wed Oct 24 16:29:25 2018 +0530 +++ b/test/hotspot/jtreg/runtime/ErrorHandling/NestedThreadsListHandleInErrorHandlingTest.java Wed Oct 24 14:59:21 2018 +0200 @@ -49,11 +49,15 @@ public static void main(String[] args) throws Exception { // The -XX:ErrorHandlerTest=N option requires debug bits. + // Need to disable ShowRegistersOnAssert: that flag causes registers to be shown, which calls os::print_location, + // which - as part of its checks - will iterate the threads list under a ThreadListHandle, changing the max nesting + // counters and confusing this test. ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( "-XX:+UnlockDiagnosticVMOptions", "-Xmx100M", "-XX:ErrorHandlerTest=17", "-XX:-CreateCoredumpOnCrash", + "-XX:-ShowRegistersOnAssert", "-version"); OutputAnalyzer output_detail = new OutputAnalyzer(pb.start()); diff -r a083dbe558f7 -r 487bd00f4ea8 test/hotspot/jtreg/runtime/ErrorHandling/ThreadsListHandleInErrorHandlingTest.java --- a/test/hotspot/jtreg/runtime/ErrorHandling/ThreadsListHandleInErrorHandlingTest.java Wed Oct 24 16:29:25 2018 +0530 +++ b/test/hotspot/jtreg/runtime/ErrorHandling/ThreadsListHandleInErrorHandlingTest.java Wed Oct 24 14:59:21 2018 +0200 @@ -49,11 +49,15 @@ public static void main(String[] args) throws Exception { // The -XX:ErrorHandlerTest=N option requires debug bits. + // Need to disable ShowRegistersOnAssert: that flag causes registers to be shown, which calls os::print_location, + // which - as part of its checks - will iterate the threads list under a ThreadListHandle, changing the max nesting + // counters and confusing this test. ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( "-XX:+UnlockDiagnosticVMOptions", "-Xmx100M", "-XX:ErrorHandlerTest=16", "-XX:-CreateCoredumpOnCrash", + "-XX:-ShowRegistersOnAssert", "-version"); OutputAnalyzer output_detail = new OutputAnalyzer(pb.start());