Integrated: JVM detect null checked flag

Chen Liang liach at openjdk.org
Wed Feb 4 22:17:33 UTC 2026


On Wed, 4 Feb 2026 21:44:21 GMT, Chen Liang <liach at openjdk.org> wrote:

> `test/jdk/valhalla/valuetypes/Reflection.java` confirms that a value `!` field now generates the same VM field flag as `@NullRestricted`; this is verified by `ValueClass.isNullRestrictedField` which reads from the VM field flag.
> 
> We can now throw away the javac hack that injects `@NullRestricted`.

This pull request has now been integrated.

Changeset: cd5163f5
Author:    Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/valhalla/commit/cd5163f5093c4e6ea0fdf7f0400590518cfe2272
Stats:     94 lines in 16 files changed: 20 ins; 48 del; 26 mod

JVM detect null checked flag

Reviewed-by: vromero

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

PR: https://git.openjdk.org/valhalla/pull/2041


More information about the valhalla-dev mailing list