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
--- 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();
}
}