diff --git a/compiler/src/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/java/LoweredAtomicReadAndAddNode.java b/compiler/src/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/java/LoweredAtomicReadAndAddNode.java index bf986acc9941..cc16e77dd315 100644 --- a/compiler/src/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/java/LoweredAtomicReadAndAddNode.java +++ b/compiler/src/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/java/LoweredAtomicReadAndAddNode.java @@ -47,8 +47,8 @@ import jdk.vm.ci.meta.ValueKind; /** - * Represents the lowered version of an atomic read-and-write operation like - * {@link sun.misc.Unsafe#getAndSetInt(Object, long, int)}. + * Represents the lowered version of an atomic read-and-add operation like + * {@link sun.misc.Unsafe#getAndAddInt(Object, long, int)}. */ @NodeInfo(allowedUsageTypes = {Memory}, cycles = CYCLES_8, size = SIZE_2) public final class LoweredAtomicReadAndAddNode extends FixedAccessNode implements StateSplit, LIRLowerableAccess, SingleMemoryKill { diff --git a/compiler/src/org.graalvm.compiler.truffle.test/src/org/graalvm/compiler/truffle/test/ResourceLimitsCompilationTest.java b/compiler/src/org.graalvm.compiler.truffle.test/src/org/graalvm/compiler/truffle/test/ResourceLimitsCompilationTest.java index 6ecf0a31fc9b..71812b7a68ff 100644 --- a/compiler/src/org.graalvm.compiler.truffle.test/src/org/graalvm/compiler/truffle/test/ResourceLimitsCompilationTest.java +++ b/compiler/src/org.graalvm.compiler.truffle.test/src/org/graalvm/compiler/truffle/test/ResourceLimitsCompilationTest.java @@ -35,6 +35,7 @@ import org.graalvm.compiler.nodes.StructuredGraph; import org.graalvm.compiler.nodes.calc.AddNode; import org.graalvm.compiler.nodes.java.AtomicReadAndAddNode; +import org.graalvm.compiler.nodes.java.LoweredAtomicReadAndAddNode; import org.graalvm.compiler.nodes.java.MethodCallTargetNode; import org.graalvm.compiler.nodes.memory.ReadNode; import org.graalvm.compiler.nodes.memory.WriteNode; @@ -203,7 +204,7 @@ public void testStatementLimitContextMultiThread() throws InterruptedException { Assert.assertEquals(1, countNodes(graph, MethodCallTargetNode.TYPE)); Assert.assertEquals(6, countNodes(graph, AtomicReadAndAddNode.TYPE)); compile(target, graph); - Assert.assertEquals(6, countNodes(graph, AtomicReadAndAddNode.TYPE)); + Assert.assertEquals(6, countNodes(graph, LoweredAtomicReadAndAddNode.TYPE)); Assert.assertEquals(1, countNodes(graph, InvokeWithExceptionNode.TYPE)); } }