On Wed, 12 Aug 2026 23:42:54 GMT, Chen Liang <[email protected]> wrote:

> 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).

This pull request has now been integrated.

Changeset: fd596940
Author:    Chen Liang <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/fd596940e81dd79a00f6f6360ae63a1c15eddf91
Stats:     145 lines in 2 files changed: 143 ins; 0 del; 2 mod

8388310: AtomicReferenceFieldUpdater does not perform a substitutability check

Reviewed-by: vklang, alanb

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

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

Reply via email to