RFR: 8372589: VM crashes on init when NonNMethodCodeHeapSize is set too small and UseTransparentHugePages is enabled

Martin Doerr mdoerr at openjdk.org
Thu Jan 22 10:04:23 UTC 2026


On Thu, 22 Jan 2026 01:57:14 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>> Thanks for the reviews!
>
> @dbriemann,  this change invalidated assumption that ReservedCodeCacheSize can't change if specified on command line. You replaced `align_down` with `align_up` but did not check that `cache_size` may increase after that.
> 
> It also causing issue with AOT because CodeCache size varies between different phases because we use different number of compiler threads and as result different NonNmethod section size.

@vnkozlov: If `ReservedCodeCacheSize` is specified on the command line, but `NonProfiledCodeHeapSize` or `ProfiledCodeHeapSize` is not specified explicitly, we could subtract from one of them. What do you think about that?

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

PR Comment: https://git.openjdk.org/jdk/pull/28658#issuecomment-3783537403


More information about the hotspot-compiler-dev mailing list