# HG changeset patch # User Doug Simon # Date 1369325612 -7200 # Node ID 53bc0557baaf6311e0790d8160e5bc66eb806315 # Parent 79d65c694a3bcddf30687df9c807baa375e3b62b reverted temporary commenting out of MonitorTests diff -r 79d65c694a3b -r 53bc0557baaf graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/MonitorTest.java --- a/graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/MonitorTest.java Thu May 23 16:49:01 2013 +0200 +++ b/graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/MonitorTest.java Thu May 23 18:13:32 2013 +0200 @@ -31,33 +31,33 @@ @Test public void test0() { -// test("lockObjectSimple", new Object(), new Object()); -// test("lockObjectSimple", new Object(), null); + test("lockObjectSimple", new Object(), new Object()); + test("lockObjectSimple", new Object(), null); test("lockObjectSimple", null, null); } - // @Test + @Test public void test0_1() { test("lockThisSimple", "test1", new Object()); test("lockThisSimple", "test1", null); } - // @Test + @Test public void test0_2() { test("lockObjectSimple", null, "test1"); } - // @Test + @Test public void test1_1() { test("lockObject", new Object(), "test1", new String[1]); } - // @Test + @Test public void test1_2() { test("lockObject", null, "test1_1", new String[1]); } - // @Test + @Test public void test2() { test("lockThis", "test2", new String[1]); } @@ -65,7 +65,7 @@ /** * Tests monitor operations on {@link PartialEscapeAnalysisPhase virtual objects}. */ - // @Test + @Test public void test3() { test("lockLocalObject", "test3", new String[1]); } @@ -73,7 +73,7 @@ /** * Tests recursive locking of objects which should be biasable. */ - // @Test + @Test public void test4() { Chars src = new Chars("1234567890".toCharArray()); Chars dst = new Chars(src.data.length); @@ -83,7 +83,7 @@ /** * Tests recursive locking of objects which do not appear to be biasable. */ - // @Test + @Test public void test5() { char[] src = "1234567890".toCharArray(); char[] dst = new char[src.length]; @@ -93,7 +93,7 @@ /** * Extends {@link #test4()} with contention. */ - // @Test + @Test public void test6() { Chars src = new Chars("1234567890".toCharArray()); Chars dst = new Chars(src.data.length); @@ -104,7 +104,7 @@ /** * Extends {@link #test5()} with contention. */ - // @Test + @Test public void test7() { char[] src = "1234567890".toCharArray(); char[] dst = new char[src.length];