RFR: 8272160: Avoid using 32-bit counters in CDS code [v3]

Ioi Lam iklam at openjdk.org
Thu Nov 6 21:04:03 UTC 2025


On Thu, 6 Nov 2025 14:41:49 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 one additional commit since the last revision:
> 
>   Windows fix

Marked as reviewed by iklam (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/28139#pullrequestreview-3430542523


More information about the hotspot-runtime-dev mailing list