OpenJDK / graal / graal-jvmci-8
changeset 2973:ca2d8e027110
Adjusted default capacity of predecessor and usage array.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 15 Jun 2011 17:19:57 +0200 |
parents | c7ce8d00c33f |
children | d69b4d2eb499 |
files | graal/com.oracle.max.graal.graph/src/com/oracle/max/graal/graph/Node.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.graph/src/com/oracle/max/graal/graph/Node.java Wed Jun 15 17:18:31 2011 +0200 +++ b/graal/com.oracle.max.graal.graph/src/com/oracle/max/graal/graph/Node.java Wed Jun 15 17:19:57 2011 +0200 @@ -46,8 +46,8 @@ this.id = graph.register(this); this.inputs = new NodeArray(this, inputCount); this.successors = new NodeArray(this, successorCount); - this.predecessors = new ArrayList<Node>(); - this.usages = new ArrayList<Node>(); + this.predecessors = new ArrayList<Node>(1); + this.usages = new ArrayList<Node>(4); } public List<Node> predecessors() {