[lworld] RFR: 8367415: Fully encapsulate array allocation in oopFactory [v3]

Coleen Phillimore coleenp at openjdk.org
Mon Sep 22 20:22:28 UTC 2025


> This makes oopFactory and deoptimization the only friends of private ArrayKlass::allocate_instance.  This is similar to the PR https://github.com/openjdk/jdk/pull/27372 in mainline with some extra handling for new_refArray (rather than calling RefArrayKlass::allocate_instance() directly.
> Tested with tier1-4.

Coleen Phillimore has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains three commits:

 - Merge branch 'lworld' into oopFactory
 - Remove rogue public
 - 8367415: Fully encapsulate array allocation in oopFactory

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

Changes: https://git.openjdk.org/valhalla/pull/1602/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1602&range=02
  Stats: 54 lines in 10 files changed: 18 ins; 26 del; 10 mod
  Patch: https://git.openjdk.org/valhalla/pull/1602.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1602/head:pull/1602

PR: https://git.openjdk.org/valhalla/pull/1602


More information about the valhalla-dev mailing list