[jdk21u-dev] RFR: 8353175: Eliminate double iteration of stream in FieldDescriptor reinitialization [v2]

Radim Vansa rvansa at openjdk.org
Mon Nov 3 12:15:53 UTC 2025


> This backport is a partial fix for a performance regression and prerequisite for backport of https://github.com/openjdk/jdk/pull/24847 (will be done through https://github.com/rvansa/jdk21u-dev/tree/refs/heads/rvansa/backport-8352075)
> 
> The backport was not clean; a notable new change is in `reflectionUtils.hpp` (later JDK versions remove the affected class) - I am adding `friend class FieldStream` to `InstanceKlass` to accomodate for this.
> 
> Backport-of: f169fc5a99ee2b485e156c043134ab76b7e5ebd9

Radim Vansa has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge remote-tracking branch 'origin/master' into backport-8353175
 - Backport f169fc5a99ee2b485e156c043134ab76b7e5ebd9

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

Changes:
  - all: https://git.openjdk.org/jdk21u-dev/pull/2010/files
  - new: https://git.openjdk.org/jdk21u-dev/pull/2010/files/620d6aa2..bd71655a

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=2010&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=2010&range=00-01

  Stats: 83402 lines in 3473 files changed: 51935 ins; 19945 del; 11522 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/2010.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/2010/head:pull/2010

PR: https://git.openjdk.org/jdk21u-dev/pull/2010


More information about the jdk-updates-dev mailing list