RFR: 8358205: Remove unused JFR array allocation code

Coleen Phillimore coleenp at openjdk.org
Fri May 30 19:49:21 UTC 2025


The JFR code is using ObjArray->allocate() directly rather than going through oopFactory.  In Valhalla, the oopFactory code is being changed to account for new array shapes and attributes, so all code should call that instead.  Turns out this function is unused, so this change removes it.  Tested with tier1-7 with a ShouldNotReachHere(), then jdk/jfr tests with the removal.

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

Commit messages:
 - Remove unused code that directly allocates an array object without going through OopFactory.

Changes: https://git.openjdk.org/jdk/pull/25553/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25553&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8358205
  Stats: 50 lines in 5 files changed: 0 ins; 45 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/25553.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25553/head:pull/25553

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


More information about the hotspot-dev mailing list