8205966: [testbug] New Nestmates JDI test times out with Xcomp on sparc
authordholmes
Sun, 08 Jul 2018 20:00:46 -0400
changeset 50952 529e8aec67bd
parent 50951 b96466cdfc45
child 50953 0fad17c646c9
8205966: [testbug] New Nestmates JDI test times out with Xcomp on sparc Reviewed-by: mikael, sspitsyn
test/jdk/com/sun/jdi/RedefineNestmateAttr/TestNestmateAttr.java
--- 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");