RFR: 8358326: Use oopFactory array allocation
Coleen Phillimore
coleenp at openjdk.org
Fri Jun 6 12:06:28 UTC 2025
This patch removes cases of direct calls to {type,obj}ArrayKlass->allocate() and calls oopFactory::new_*array instead. It also renames {type,obj}ArrayKlass->allocate functions to allocate_klass and allocate_instance so it's more clear which allocation it's doing and to match InstanceKlass allocate functions, and makes these functions private with friends for Deoptimization and oopFactory. For JEP 401, arrays are being extended to support new formats and attributes and this reduces the call sites.
Tested with tier1-7.
-------------
Commit messages:
- 8358326: Use oopFactory array allocation
Changes: https://git.openjdk.org/jdk/pull/25590/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25590&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8358326
Stats: 66 lines in 10 files changed: 23 ins; 14 del; 29 mod
Patch: https://git.openjdk.org/jdk/pull/25590.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25590/head:pull/25590
PR: https://git.openjdk.org/jdk/pull/25590
More information about the graal-dev
mailing list