RFR: 8272160: Avoid using 32-bit counters in CDS code [v2]
Matias Saavedra Silva
matsaave at openjdk.org
Wed Nov 5 19:33:00 UTC 2025
> 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
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/28139/files
- new: https://git.openjdk.org/jdk/pull/28139/files/26b7b378..d7e054ff
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=28139&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=28139&range=00-01
Stats: 32 lines in 7 files changed: 0 ins; 0 del; 32 mod
Patch: https://git.openjdk.org/jdk/pull/28139.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28139/head:pull/28139
PR: https://git.openjdk.org/jdk/pull/28139
More information about the hotspot-runtime-dev
mailing list