[lworld] RFR: 8329218: [lworld] Arrays.copyOf and Arrays.copyOfRange support for null-restricted arrays
Mandy Chung
mchung at openjdk.org
Wed Apr 3 16:25:30 UTC 2024
`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.
-------------
Commit messages:
- Add argument check to NullRestrictedCheckedType::of and NormalCheckedType::of
- Merge branch 'lworld' of https://github.com/openjdk/valhalla into arraysCopyOf
- comment out the test cases depending on JDK-8329224
- Merge branch 'lworld' of https://github.com/openjdk/valhalla into arraysCopyOf
- 8329218: [lworld] Arrays.copyOf and Arrays.copyOfRange support for null-restricted arrays
Changes: https://git.openjdk.org/valhalla/pull/1070/files
Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1070&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8329218
Stats: 118 lines in 6 files changed: 91 ins; 11 del; 16 mod
Patch: https://git.openjdk.org/valhalla/pull/1070.diff
Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1070/head:pull/1070
PR: https://git.openjdk.org/valhalla/pull/1070
More information about the valhalla-dev
mailing list