RFR: 8272160: Avoid using 32-bit counters in CDS code
Vladimir Kozlov
kvn at openjdk.org
Tue Nov 4 20:21:50 UTC 2025
On Tue, 4 Nov 2025 19:08:34 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.
You only changed `CountSharedSymbols::_count`. Please, adjust RFE's title accordingly.
I am not actually convinced why it is necessary. Can you explain why? What benefits you get with this change.
-------------
PR Review: https://git.openjdk.org/jdk/pull/28139#pullrequestreview-3418498865
More information about the hotspot-runtime-dev
mailing list