On Wed, 4 Feb 2026 21:44:21 GMT, Chen Liang <[email protected]> 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 <[email protected]>
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

Reply via email to