changeset 442:f2547e64dc3c

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
author jjh
date Mon, 28 Jul 2008 12:37:52 -0700
parents 541631112989
children 8c667d55b79e 95ce89bf8cd2
files test/com/sun/jdi/MonitorFrameInfo.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/com/sun/jdi/MonitorFrameInfo.java	Sat Jul 26 20:42:35 2008 -0700
+++ b/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();
         }
     }