mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-12 14:39:49 +00:00
8212913: (Nested)ThreadsListHandleInErrorHandlingTest need to disable ShowRegistersOnAssert
Reviewed-by: dholmes, mdoerr
This commit is contained in:
parent
8cc75f412e
commit
5dac22b8eb
@ -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());
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user