[lworld] RFR: 8329205: [lworld] Add jdk.internal.value.CheckedType API [v2]

Chen Liang liach at openjdk.org
Wed Mar 27 21:34:42 UTC 2024


On Wed, 27 Mar 2024 18:48:13 GMT, Mandy Chung <mchung at openjdk.org> wrote:

>> This PR adds `jdk.internal.value.CheckedType` and other internal APIs for null-restricted value type and array support.   Also rename `Unsafe::isFlattenedArray` to `Unsafe::isFlatArray`.
>
> Mandy Chung has updated the pull request incrementally with one additional commit since the last revision:
> 
>   misc clean up

Sorry for a late comment, but should we add some handling to checked types to explicitly reject passing primitives? Currently primitives doesn't appear in checked types' code paths but other developers might accidentally abuse it in the future.

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

PR Comment: https://git.openjdk.org/valhalla/pull/1065#issuecomment-2024027057



More information about the valhalla-dev mailing list