RFR: 8373695: G1: Using a value near integer max for ActiveProcessorCount causes fatal crash

Thomas Schatzl tschatzl at openjdk.org
Fri Dec 19 10:04:21 UTC 2025


On Tue, 16 Dec 2025 17:46:29 GMT, Jonas Norlinder <jnorlinder at openjdk.org> wrote:

> Thanks for the suggestion Stefan. Thomas had the same comment and I’m open to it. But are we OK with using the upper bound limited by G1ConcRefinementThreads?

Not sure what the question is, but limiting `ParallelGCThreads` by `max_jint / 8` is an extremely generous limit anyway which should not give issues. The constant needs to be moved somewhere else though.

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

PR Comment: https://git.openjdk.org/jdk/pull/28831#issuecomment-3674384866


More information about the hotspot-gc-dev mailing list