Mercurial > hg > graal-jvmci-8
changeset 9556:54748fae40d7
Merge (fixed: 7931508747f5 Fix parameters of node intrinsics to use more specific Location and LocationIden)
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 03 May 2013 20:29:33 +0200 |
parents | 76937211a12d (diff) 7931508747f5 (current diff) |
children | 9e77e858b6eb |
files | |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/virtual/CommitAllocationNode.java Fri May 03 09:24:24 2013 -0700 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/virtual/CommitAllocationNode.java Fri May 03 20:29:33 2013 +0200 @@ -35,7 +35,7 @@ @Input private final NodeInputList<VirtualObjectNode> virtualObjects = new NodeInputList<>(this); @Input private final NodeInputList<ValueNode> values = new NodeInputList<>(this); - private final List<int[]> locks = new ArrayList<>(); + private List<int[]> locks = new ArrayList<>(); public CommitAllocationNode() { super(StampFactory.forVoid()); @@ -72,6 +72,13 @@ } @Override + public Node clone(Graph into) { + CommitAllocationNode clone = (CommitAllocationNode) super.clone(into); + clone.locks = new ArrayList<>(locks); + return clone; + } + + @Override public void virtualize(VirtualizerTool tool) { int pos = 0; for (int i = 0; i < virtualObjects.size(); i++) {