From ad0ee1da9c356f0b797f6579804c1d2ab4452cad Mon Sep 17 00:00:00 2001 From: jjh Date: Mon, 28 Jul 2008 12:37:52 -0700 Subject: [PATCH] 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 --- test/com/sun/jdi/MonitorFrameInfo.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/com/sun/jdi/MonitorFrameInfo.java b/test/com/sun/jdi/MonitorFrameInfo.java index 8f7bfce34..056428da2 100644 --- a/test/com/sun/jdi/MonitorFrameInfo.java +++ b/test/com/sun/jdi/MonitorFrameInfo.java @@ -49,6 +49,7 @@ class MonitorTestTarg { static void foo2() { Object l1 = new Object(); synchronized(l1) { + System.out.println("executing foo2 " + l1); foo3(); } } @@ -59,6 +60,7 @@ class MonitorTestTarg { System.out.println("Howdy!"); Object l1 = new Object(); synchronized(l1) { + System.out.println("executing main" + l1); foo1(); } } -- GitLab