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

Aleksey Shipilev shade at openjdk.org
Wed Jul 30 13:33:57 UTC 2025


On Tue, 22 Jul 2025 15:15:13 GMT, Radim Vansa <rvansa at openjdk.org> wrote:

> 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

The change looks fine. But you need to name the *PR* `Backport f169fc5a99ee2b485e156c043134ab76b7e5ebd9`, not just the changeset, to get it properly hooked up.

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

PR Review: https://git.openjdk.org/jdk21u-dev/pull/2010#pullrequestreview-3071575939


More information about the jdk-updates-dev mailing list