RFR: 8311821: Simplify ParallelGCThreadsConstraintFunc after CMS removal

Aleksey Shipilev shade at openjdk.org
Fri Jul 21 10:53:45 UTC 2023


On Fri, 21 Jul 2023 02:45:18 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> Could we eliminate the constraint function and instead specify a range for the option? Using `range(0, INT_MAX)` would reduce the upper bound for collectors other than ParallelGC, but I doubt anyone would notice :)

I agree! Let's just put the `range(0, INT_MAX)` here: https://github.com/openjdk/jdk/blob/8cd43bff3cd18d6e83cbf07b78a809ad002993c5/src/hotspot/share/gc/shared/gc_globals.hpp#L136

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

PR Comment: https://git.openjdk.org/jdk/pull/14965#issuecomment-1645388817


More information about the hotspot-gc-dev mailing list