[lworld] RFR: 8377242: [lworld] Remove _has_inlined_fields member from ClassFileParser
Casper Norrbin
cnorrbin at openjdk.org
Thu Feb 5 13:15:04 UTC 2026
Hi everyone,
This PR removes the redundant `ClassFileParser::_has_inlined_fields` member from ClassFileParser. The value stored in `_has_inlined_fields` is derived directly from `FieldLayoutInfo` and is only used for a getter. Since `ClassFileParser` already retains this in `_layout_info`, a separate duplicate member is unnecessary. With this change, the getter returns the value directly from the stored `FieldLayoutInfo`, removing the extra member while preserving existing behavior.
Testing:
- Tier 1
-------------
Commit messages:
- remove _has_inlined_fields in ClassFileParser
Changes: https://git.openjdk.org/valhalla/pull/2047/files
Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2047&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8377242
Stats: 4 lines in 2 files changed: 0 ins; 3 del; 1 mod
Patch: https://git.openjdk.org/valhalla/pull/2047.diff
Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2047/head:pull/2047
PR: https://git.openjdk.org/valhalla/pull/2047
More information about the valhalla-dev
mailing list