# HG changeset patch # User Lukas Stadler # Date 1355765791 -3600 # Node ID 9e155cd2bb2ff5b257330a1a60a9ef653ad900bf # Parent c6696813003774f2f0a3831b71a6a49e8dcd3a31 enable tlab stub for array allocation diff -r c66968130037 -r 9e155cd2bb2f graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/stubs/NewArrayStub.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/stubs/NewArrayStub.java Mon Dec 17 17:44:09 2012 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/stubs/NewArrayStub.java Mon Dec 17 18:36:31 2012 +0100 @@ -33,7 +33,6 @@ import com.oracle.graal.hotspot.snippets.*; import com.oracle.graal.snippets.*; import com.oracle.graal.snippets.Snippet.ConstantParameter; -import com.oracle.graal.snippets.Snippet.Fold; import com.oracle.graal.snippets.Snippet.Parameter; import com.oracle.graal.snippets.SnippetTemplate.Key; @@ -82,7 +81,7 @@ log(log, "newArray: hub=%p\n", hub.toLong()); // check that array length is small enough for fast path. - if (!forceSlowPath() && length <= MAX_ARRAY_FAST_PATH_ALLOCATION_LENGTH) { + if (length <= MAX_ARRAY_FAST_PATH_ALLOCATION_LENGTH) { Word memory = refillAllocate(intArrayHub, sizeInBytes, log); if (memory != Word.zero()) { log(log, "newArray: allocated new array at %p\n", memory.toLong()); @@ -93,10 +92,4 @@ log(log, "newArray: calling new_array_slow", 0L); return verifyOop(NewArraySlowStubCall.call(hub, length)); } - - @Fold - private static boolean forceSlowPath() { - // TODO (ds) make default "false" once refill issue is resolved - return "true".equalsIgnoreCase(System.getProperty("graal.newArrayStub.forceSlowPath", "true")); - } }