8212913: (Nested)ThreadsListHandleInErrorHandlingTest need to disable ShowRegistersOnAssert

Reviewed-by: dholmes, mdoerr
This commit is contained in:
Thomas Stuefe 2018-10-24 14:59:21 +02:00
parent 8cc75f412e
commit 5dac22b8eb
2 changed files with 8 additions and 0 deletions

View File

@ -49,11 +49,15 @@ public class NestedThreadsListHandleInErrorHandlingTest {
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());

View File

@ -49,11 +49,15 @@ public class ThreadsListHandleInErrorHandlingTest {
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());