RFR: 8359227: Code cache/heap size options should be size_t

Kim Barrett kbarrett at openjdk.org
Fri Jun 13 07:04:46 UTC 2025


Please review this change that makes the various code cache/heap size options
consistently be of type size_t.

The shared declarations for these options were all uintx. These options all
may have platform-defined values. Some of those platform-specific definitions
were uintx, some were size_t, and some were intx(!). This change makes them
all consistently size_t.

More details in the first comment.

Testing: mach5 tier1-6
GHA testing in-progress

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

Commit messages:
 - fix whitebox access to code cache size configs
 - VMPageSizeConstraintFunc
 - CodeCacheMinBlockLength
 - CodeCacheExpansionSize
 - various CodeHeapSize options
 - CodeCacheMinimumUseSpace
 - Initial/ReservedCodeCacheSize
 - CodeCacheSegmentSize

Changes: https://git.openjdk.org/jdk/pull/25791/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25791&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8359227
  Stats: 165 lines in 40 files changed: 3 ins; 0 del; 162 mod
  Patch: https://git.openjdk.org/jdk/pull/25791.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25791/head:pull/25791

PR: https://git.openjdk.org/jdk/pull/25791


More information about the graal-dev mailing list