Integrated: 8360522: G1: Flag constraint functions for G1SATBBufferSize and G1UpdateBufferSize are skipped during argument validation

Ivan Walulya iwalulya at openjdk.org
Thu Jun 26 15:04:40 UTC 2025


On Wed, 25 Jun 2025 12:53:03 GMT, Ivan Walulya <iwalulya at openjdk.org> wrote:

> Hi,
> 
> Please review this change to move constraint function execution for  G1SATBBufferSize and G1UpdateBufferSize  to AfterErgo. These functions rely on the UseG1GC flag to determine whether to apply checks. However, during the AtParse phase of argument handling, UseG1GC may not yet be processed, which causes the constraints to be skipped.
> 
> Testing:
> `java -XX:G1SATBBufferSize=0 -version`
> `G1SATBBufferSize (0) must be in range [1, 4294967295]`
> `Error: Could not create the Java Virtual Machine.`
> `Error: A fatal exception has occurred. Program will exit.`

This pull request has now been integrated.

Changeset: bd666f90
Author:    Ivan Walulya <iwalulya at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/bd666f90eb7325c5a8c51cb2b9c28e177c5fe3a3
Stats:     3 lines in 1 file changed: 0 ins; 0 del; 3 mod

8360522: G1: Flag constraint functions for G1SATBBufferSize and G1UpdateBufferSize are skipped during argument validation

Reviewed-by: tschatzl, ayang

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

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


More information about the hotspot-gc-dev mailing list