Integrated: 8358326: Use oopFactory array allocation
Coleen Phillimore
coleenp at openjdk.org
Mon Jun 9 18:35:57 UTC 2025
On Mon, 2 Jun 2025 14:07:10 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: eb256deb
Author: Coleen Phillimore <coleenp at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/eb256deb8021d5b243ef782eb9e2622472909e97
Stats: 67 lines in 10 files changed: 23 ins; 14 del; 30 mod
8358326: Use oopFactory array allocation
Reviewed-by: fparain, stefank
-------------
PR: https://git.openjdk.org/jdk/pull/25590
More information about the hotspot-dev
mailing list