On Wed, 30 Sep 2026 14:55:44 GMT, Aleksey Shipilev <[email protected]> wrote:

> Our automatic post-integration audits found that 
> [JDK-8391651](https://bugs.openjdk.org/browse/JDK-8391651) missed the spot. 
> It fixed the compareAndSetFlatValueAsBytes (CAS) case, but missed 
> compareAndExchangeFlatValue (CAE) case.
> 
> A symmetric test case readily fails without the fix. I just copied the CAS 
> test and replaced call with CAE.
> 
> Additional testing:
>  - [x] New regression test fails without the fix, passes with it
> 
> ---------
> - [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: 6310a3c7
Author:    Aleksey Shipilev <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/6310a3c779b33bc92175a019c02b7cb257ab9ecf
Stats:     54 lines in 2 files changed: 53 ins; 0 del; 1 mod

8393318: VarHandle CAE case should be handled as in JDK-8391651

Reviewed-by: jsjolen, dholmes

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

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

Reply via email to