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

Vladimir Kozlov kvn at openjdk.org
Thu Jun 20 16:42:11 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.

Good.

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

Marked as reviewed by kvn (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/19812#pullrequestreview-2130903414


More information about the hotspot-compiler-dev mailing list