RFR: JDK-8328272: [AIX] Use flag kind "diagnostic" for platform specific flags

Thomas Stuefe stuefe at openjdk.org
Mon Mar 18 11:27:27 UTC 2024


On Sat, 16 Mar 2024 13:53:13 GMT, Joachim Kern <jkern at openjdk.org> wrote:

> Current platform implementation (globals_aix.hpp) uses regular product flags for almost everything.
> Most platform specific flags were never intended for official support. They are only there to diagnose issues and find workarounds.
> So flag kind "diagnostic" fits better for them.

Please be aware that this can cause problems with customers who update the JVM to this patch and have one of these settings set in production. Their JVMs may not come up after this change.

To use diagnostic flags, you need to specify "-XX:UnlockDiagnosticVMOptions" to unlock them, otherwise the JVM will not come up. Which is the reason such changes usually need CSRs.

Up to you if you risk it, ultimately. But I think `MaxExpectedDataSegmentSize` is needed and pretty commonly used. I would leave that one a product flag.

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

PR Comment: https://git.openjdk.org/jdk/pull/18337#issuecomment-2003655128


More information about the hotspot-runtime-dev mailing list