# HG changeset patch # User Thomas Wuerthinger # Date 1358038507 -3600 # Node ID 00e3c2e4e43c6fb1c08feb857304cb2d3b045045 # Parent df79deffdf4c636064782a2c75d2cb7ac7d9e13d Re-enable fast array allocation/initialization. diff -r df79deffdf4c -r 00e3c2e4e43c graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/snippets/NewObjectSnippets.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/snippets/NewObjectSnippets.java Sun Jan 13 00:43:02 2013 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/snippets/NewObjectSnippets.java Sun Jan 13 01:55:07 2013 +0100 @@ -289,7 +289,7 @@ ConstantNode size = ConstantNode.forInt(-1, graph); InitializeArrayNode initializeNode = graph.add(new InitializeArrayNode(zero, lengthNode, size, arrayType, newArrayNode.fillContents(), newArrayNode.locked())); graph.replaceFixedWithFixed(newArrayNode, initializeNode); - } else if (false && length != null && belowThan(length, MAX_ARRAY_FAST_PATH_ALLOCATION_LENGTH)) { + } else if (length != null && belowThan(length, MAX_ARRAY_FAST_PATH_ALLOCATION_LENGTH)) { // Calculate aligned size int size = computeArrayAllocationSize(length, alignment, headerSize, log2ElementSize); ConstantNode sizeNode = ConstantNode.forInt(size, graph);