# HG changeset patch # User Thomas Wuerthinger # Date 1399368853 -7200 # Node ID a71192a503feecb38363a18325f4810db2ea6843 # Parent a51d48ac96d3a81fe48f3e01d5cc64b92dc8c528 Fix stamp of LoweredAtomicReadAndWriteNode. diff -r a51d48ac96d3 -r a71192a503fe graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/nodes/CompressionNode.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/nodes/CompressionNode.java Tue May 06 04:14:00 2014 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/nodes/CompressionNode.java Tue May 06 11:34:13 2014 +0200 @@ -90,7 +90,7 @@ } break; } - throw GraalInternalError.shouldNotReachHere(); + throw GraalInternalError.shouldNotReachHere(String.format("Unexpected input stamp %s", input)); } public ValueNode getInput() { diff -r a51d48ac96d3 -r a71192a503fe graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/LoweredAtomicReadAndWriteNode.java --- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/LoweredAtomicReadAndWriteNode.java Tue May 06 04:14:00 2014 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/LoweredAtomicReadAndWriteNode.java Tue May 06 11:34:13 2014 +0200 @@ -23,7 +23,6 @@ package com.oracle.graal.nodes.java; import com.oracle.graal.api.meta.*; -import com.oracle.graal.compiler.common.type.*; import com.oracle.graal.graph.*; import com.oracle.graal.nodes.*; import com.oracle.graal.nodes.extended.*; @@ -42,7 +41,7 @@ @Input(InputType.State) private FrameState stateAfter; public LoweredAtomicReadAndWriteNode(ValueNode object, LocationNode location, ValueNode newValue, BarrierType barrierType, boolean compressible) { - super(object, location, StampFactory.forKind(newValue.stamp().getStackKind()), barrierType, compressible); + super(object, location, newValue.stamp().unrestricted(), barrierType, compressible); this.newValue = newValue; }