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). JMH results: This patch: Benchmark Mode Cnt Score Error Units Atomic.testAtomicReferenceFieldUpdater avgt 15 4.220 ± 0.056 ns/op jdk-28+6: Benchmark Mode Cnt Score Error Units Atomic.testAtomicReferenceFieldUpdater avgt 15 4.168 ± 0.049 ns/op ------------- PR Comment: https://git.openjdk.org/jdk/pull/31924#issuecomment-5063091954
