On Tue, 24 Jun 2025 00:04:54 GMT, Chen Liang <li...@openjdk.org> wrote:

> Unsafe throws IAE for misusing static vs instance fields, and it's revealed 
> that AtomicXxxFieldUpdaters are using this mechanism to reject static fields. 
> This is not a good practice, but we can at least document this so we don't 
> accidentally introduce problems.

This pull request has now been integrated.

Changeset: cd50d78d
Author:    Chen Liang <li...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/cd50d78d447f9f39065bc844fb3041cba2db32db
Stats:     194 lines in 9 files changed: 177 ins; 2 del; 15 mod

8361300: Document exceptions for Unsafe offset methods

Reviewed-by: jrose, vyazici

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

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

Reply via email to