RFR: 8272160: Avoid using 32-bit counters in CDS code [v2]
Ioi Lam
iklam at openjdk.org
Wed Nov 5 20:35:02 UTC 2025
On Wed, 5 Nov 2025 19:33:00 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:
>> There are a handful of counters in CDS code that are `int` when it would be safer to use size_t. While exploring this I discovered that the `_count` field in DumpTimeKlassSubGraphInfoTable is unused so it is removed and the one use case replaced with a more accurate value. Verified with tier1-5 tests.
>
> Matias Saavedra Silva has updated the pull request incrementally with two additional commits since the last revision:
>
> - Ioi comments
> - Changes more counters and sizes to size_t
LGTM
-------------
Marked as reviewed by iklam (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/28139#pullrequestreview-3424232814
More information about the hotspot-runtime-dev
mailing list