diff graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/ArraySubstitutions.java @ 10542:554f67e4ff3f

Use slow-path stub call instead of deopt in lowering of DynamicNewArrayNode.
author Roland Schatz <roland.schatz@oracle.com>
date Wed, 26 Jun 2013 15:35:58 +0200
parents e561e0a6f727
children aca7481e71d1
line wrap: on
line diff
--- a/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/ArraySubstitutions.java	Wed Jun 26 15:22:21 2013 +0200
+++ b/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/ArraySubstitutions.java	Wed Jun 26 15:35:58 2013 +0200
@@ -35,7 +35,7 @@
 public class ArraySubstitutions {
 
     @MethodSubstitution
-    public static Object newArray(Class<?> componentType, int length) throws NegativeArraySizeException {
+    public static Object newInstance(Class<?> componentType, int length) throws NegativeArraySizeException {
         if (componentType == null) {
             DeoptimizeNode.deopt(DeoptimizationAction.None, DeoptimizationReason.NullCheckException);
         }