Integrated: 8334564: VM startup: fatal error: FLAG_SET_ERGO cannot be used to set an invalid value for NonNMethodCodeHeapSize

Lutz Schmidt lucy at openjdk.org
Mon Jun 24 11:30:19 UTC 2024


On Thu, 20 Jun 2024 15:54:29 GMT, Lutz Schmidt <lucy at openjdk.org> wrote:

> CodeHeap segment sizes are aligned to page size multiples. This can result in the non-nmethod segment receiving size 0 (zero). Range checking during FLAG_SET_ERGO processing detects that and raises an error, preventing the vm from starting.
> 
> This fix increases the minimum size of the non-nmethod segment to page size, preventing it from being rounded down to zero.
> 
> Verified by manual testing. Nightly tests (mainly to discover unexpected side effects) pending.
> 
> Nightly tests did not reveal anything suspicious.

This pull request has now been integrated.

Changeset: 2e64d151
Author:    Lutz Schmidt <lucy at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/2e64d15144be03388104c762816c1ba629da9639
Stats:     5 lines in 1 file changed: 5 ins; 0 del; 0 mod

8334564: VM startup: fatal error: FLAG_SET_ERGO cannot be used to set an invalid value for NonNMethodCodeHeapSize

Reviewed-by: mdoerr, kvn, stuefe

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

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


More information about the hotspot-compiler-dev mailing list