RFR: 8358694: VM asserts if CodeCacheSegmentSize is not a power of 2

Damon Fenacci dfenacci at openjdk.org
Tue Jun 10 07:08:32 UTC 2025


On Tue, 10 Jun 2025 04:46:43 GMT, Amit Kumar <amitkumar at openjdk.org> wrote:

> Makes sure that JVM exits gracefully when `CodeCacheSegmentSize` is not a power of 2.

Thanks for fixing this @offamitkumar!
I was wondering if we couldn't do this right at the start when we check the flag constraints, e.g. here:
https://github.com/openjdk/jdk/blob/ca7b885873712a5ae503cb82c915d709034a69f7/src/hotspot/share/runtime/flags/jvmFlagConstraintsCompiler.cpp#L158

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

PR Review: https://git.openjdk.org/jdk/pull/25708#pullrequestreview-2912241472


More information about the hotspot-compiler-dev mailing list