6730587: TEST: com/sun/jdi/MonitorFrameInfoTest.java fails with -server -Xcomp
authorjjh
Mon, 28 Jul 2008 12:37:52 -0700
changeset 899 40d3416d937a
parent 898 1c4e95595472
child 900 55c9c5a88bde
child 912 3322af753f62
6730587: TEST: com/sun/jdi/MonitorFrameInfoTest.java fails with -server -Xcomp Summary: Fix test to prevent C2 escape analysis from deleting the required synchronized blocks Reviewed-by: swamyv
jdk/test/com/sun/jdi/MonitorFrameInfo.java
--- a/jdk/test/com/sun/jdi/MonitorFrameInfo.java	Sat Jul 26 20:42:35 2008 -0700
+++ b/jdk/test/com/sun/jdi/MonitorFrameInfo.java	Mon Jul 28 12:37:52 2008 -0700
@@ -49,6 +49,7 @@
     static void foo2() {
         Object l1 = new Object();
         synchronized(l1) {
+            System.out.println("executing foo2 " + l1);
             foo3();
         }
     }
@@ -59,6 +60,7 @@
         System.out.println("Howdy!");
         Object l1 = new Object();
         synchronized(l1) {
+            System.out.println("executing main" + l1);
             foo1();
         }
     }