RFR: 8373695: G1: Using a value near integer max for ActiveProcessorCount causes fatal crash [v2]
Jonas Norlinder
jnorlinder at openjdk.org
Fri Dec 19 11:52:00 UTC 2025
On Fri, 19 Dec 2025 11:42:05 GMT, Jonas Norlinder <jnorlinder at openjdk.org> wrote:
>> G1ConcRefinementThreads default value depends on ParallelGCThreads which in turn may depend on ActiveProcessorCount. These have different ranges that are valid. Patch will ensure argument setup code never try to assign a value larger than what G1ConcRefinementThreads expects.
>
> Jonas Norlinder has updated the pull request incrementally with one additional commit since the last revision:
>
> Limit ParallelGCThreads
FYI; I noticed that applying a limit on ParallelGCThreads still makes it possible to sneak in a larger value with ActiveProcessorCount. Looking into the interaction with ActiveProcessorCount with the rest of the code
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28831#issuecomment-3674767485
More information about the hotspot-gc-dev
mailing list