Mercurial > hg > truffle
changeset 7254:9e155cd2bb2f
enable tlab stub for array allocation
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Mon, 17 Dec 2012 18:36:31 +0100 |
parents | c66968130037 |
children | 95a685941e10 b1ebd583be14 169bbc849ee9 |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/stubs/NewArrayStub.java |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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")); - } }