[lworld] RFR: 8329218: [lworld] Arrays.copyOf and Arrays.copyOfRange support for null-restricted arrays
Chen Liang
liach at openjdk.org
Wed Apr 3 23:11:08 UTC 2024
On Wed, 3 Apr 2024 16:21:29 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> `Arrays::copyOf` and `Arrays::copyOfRange` should return a null-restricted array if the input array is null-restricted. The intrinsification for these methods will need to be updated ([JDK-8329218](https://bugs.openjdk.org/browse/JDK-8329218)). Three test cases in `test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestArrays.java` are commented out until JDK-8329218 is resolved.
Thanks for the explanations. I was curious that the current copyOf implementation doesn't allow specifying if the new array should be NR or not.
-------------
PR Comment: https://git.openjdk.org/valhalla/pull/1070#issuecomment-2035787206
More information about the valhalla-dev
mailing list