Here's a patch adding argument validation to the factories for the special arrays. It also aligns the semantic of these factories with other ways to create arrays with respect to the initialization state of the element type. Some compiler tests needed adjustments because of the new code shape of the factories.
Thank you. --------- - [X] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Merge remote-tracking branch 'upstream/lworld' into fact_valid - Add unit tests - Tune compiler test - Fix product build - Rework array factories argument validation Changes: https://git.openjdk.org/valhalla/pull/2435/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2435&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8383820 Stats: 465 lines in 8 files changed: 399 ins; 33 del; 33 mod Patch: https://git.openjdk.org/valhalla/pull/2435.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2435/head:pull/2435 PR: https://git.openjdk.org/valhalla/pull/2435
