On Thu, 16 Jul 2026 02:46:57 GMT, Chen Liang <[email protected]> wrote:

> Simplifies maintenance for Value Objects: Unsafe reference comparison is no 
> longer the same as `==`, let's use VarHandle which is always up-to-date.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

It's come up a few times and value objects gives a good motivation. 

(It also comes up periodically to deprecate AtomicReference* with a 
recommendation to use VarHandle directly but there hasn't been a strong 
motivation to do that).

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

PR Comment: https://git.openjdk.org/jdk/pull/31924#issuecomment-5022972299

Reply via email to