mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8230841: Remove oopDesc::equals()
Reviewed-by: rkennke, tschatzl
This commit is contained in:
parent
cb50d3b4f3
commit
2d6874b861
52 changed files with 119 additions and 132 deletions
|
@ -935,7 +935,7 @@ UNSAFE_ENTRY(jboolean, Unsafe_CompareAndSetReference(JNIEnv *env, jobject unsafe
|
|||
oop p = JNIHandles::resolve(obj);
|
||||
assert_field_offset_sane(p, offset);
|
||||
oop ret = HeapAccess<ON_UNKNOWN_OOP_REF>::oop_atomic_cmpxchg_at(x, p, (ptrdiff_t)offset, e);
|
||||
return oopDesc::equals(ret, e);
|
||||
return ret == e;
|
||||
} UNSAFE_END
|
||||
|
||||
UNSAFE_ENTRY(jboolean, Unsafe_CompareAndSetInt(JNIEnv *env, jobject unsafe, jobject obj, jlong offset, jint e, jint x)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue