Mercurial > hg > graal-compiler
changeset 21286:25191b864d27
added test for Array.newInstance method called from with a synchronized method
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 11 May 2015 14:21:31 +0200 |
parents | 61c8fbd13cfc |
children | 0457430979a5 |
files | graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/DynamicNewArrayTest.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/DynamicNewArrayTest.java Mon May 11 12:43:28 2015 +0200 +++ b/graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/DynamicNewArrayTest.java Mon May 11 14:21:31 2015 +0200 @@ -55,6 +55,7 @@ @Test public void test4() { test("dynamic", Boolean.class, -7); + test("dynamicSynchronized", Boolean.class, -7); } @Test @@ -95,4 +96,8 @@ public static Object dynamic(Class<?> elementType, int length) { return Array.newInstance(elementType, length); } + + public static synchronized Object dynamicSynchronized(Class<?> elementType, int length) { + return Array.newInstance(elementType, length); + } }