RFR: 8367989: Remove InstanceKlass::allocate_objArray [v2]

Coleen Phillimore coleenp at openjdk.org
Fri Sep 19 12:22:54 UTC 2025


> This change removes InstanceKlass::allocate_objArray and has its caller call ObjArrayKlass::allocate_instance directly from oopFactory, like the other array allocations do.  See CR for more information why we should have this change.  I also removed element_klass_addr() and moved element_klass_offset() to be in a more logical place near element_klass() functions.  This upstreams a tiny valhalla diff.
> Tested with tier1-4.

Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:

  Stefan's suggestion #1.

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/27372/files
  - new: https://git.openjdk.org/jdk/pull/27372/files/e1680b1c..f4f1d289

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27372&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27372&range=00-01

  Stats: 17 lines in 3 files changed: 2 ins; 12 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/27372.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27372/head:pull/27372

PR: https://git.openjdk.org/jdk/pull/27372


More information about the hotspot-dev mailing list