RFR: 8358326: Use oopFactory array allocation [v2]
Coleen Phillimore
coleenp at openjdk.org
Mon Jun 9 14:16:39 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.
Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
Sort our friends.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25590/files
- new: https://git.openjdk.org/jdk/pull/25590/files/2da2b11b..2ccaf422
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25590&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25590&range=00-01
Stats: 6 lines in 2 files changed: 2 ins; 2 del; 2 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