Use the correct version of `compareAndSetReference` from `Unsafe` to ensure 
`AtomicReferenceFieldUpdater` works with value objects.

The new tests stalls on `testWeakCompareAndSet` without the patch and fails on 
compareAndSet tests with that stalling test disabled.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8388310

Changes: https://git.openjdk.org/jdk/pull/32325/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32325&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8388310
  Stats: 147 lines in 2 files changed: 145 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/32325.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32325/head:pull/32325

PR: https://git.openjdk.org/jdk/pull/32325

Reply via email to