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

Coleen Phillimore coleenp at openjdk.org
Mon Sep 22 19:54:11 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 incrementally with one additional commit since the last revision:

  Remove rogue public

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

Changes:
  - all: https://git.openjdk.org/valhalla/pull/1602/files
  - new: https://git.openjdk.org/valhalla/pull/1602/files/5712324e..990cf11f

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

  Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 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