8205966: [testbug] New Nestmates JDI test times out with Xcomp on sparc
Reviewed-by: mikael, sspitsyn
--- a/test/jdk/com/sun/jdi/RedefineNestmateAttr/TestNestmateAttr.java Sun Jul 08 12:43:05 2018 -0400
+++ b/test/jdk/com/sun/jdi/RedefineNestmateAttr/TestNestmateAttr.java Sun Jul 08 20:00:46 2018 -0400
@@ -189,12 +189,14 @@
}
+ breakpoint(); // debugger runs to here before enabling events
allowRedefine(); // debugger stops us here to attempt redefinitions
System.out.println("Target executed okay");
}
- public static void allowRedefine() { }
+ static void allowRedefine() { }
+ static void breakpoint() { }
}
public class TestNestmateAttr extends TestScaffold {
@@ -226,7 +228,7 @@
public void runTests() throws Exception {
// Get Target into debuggable state
- BreakpointEvent bpe = startToMain("Target");
+ BreakpointEvent bpe = startTo("Target", "breakpoint", "()V");
EventRequestManager erm = vm().eventRequestManager();
MethodEntryRequest mee = erm.createMethodEntryRequest();
mee.addClassFilter("Target");