Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -77,8 +77,8 @@ public CompareAndSetNode(RubyContext context, SourceSection sourceSection) {
}

@Specialization
public boolean compareAndSet(DynamicObject self, Object expected_value, Object value) {
return Layouts.ATOMIC_REFERENCE.compareAndSetValue(self, expected_value, value);
public boolean compareAndSet(DynamicObject self, Object expectedValue, Object value) {
return Layouts.ATOMIC_REFERENCE.compareAndSetValue(self, expectedValue, value);
}
}

Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ DynamicObject createAtomicReference(DynamicObjectFactory factory,

Object getValue(DynamicObject object);
void setValue(DynamicObject object, Object value);
boolean compareAndSetValue(DynamicObject object, Object expected_value, Object value);
boolean compareAndSetValue(DynamicObject object, Object expectedValue, Object value);
Object getAndSetValue(DynamicObject object, Object value);

}

1 comment on commit b3938a7

@pitr-ch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the Ruby leak, Thanks

Please sign in to comment.