RFR: 8292590: Product JVM crashes with FLAG_SET_XXX on non-product Flag
Coleen Phillimore
coleenp at openjdk.org
Tue Aug 30 19:45:18 UTC 2022
On Mon, 29 Aug 2022 22:11:55 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> The function `FLAG_MEMBER_SETTER(name)` is no longer declared for non-product flags (`develop` or `notproduct`) in a product build. If you use use `FLAG_SET_XXX` with such a flag in a product build, you'd get a C++ compile error.
>
> This is validated by the change in arguments.cpp, which used to set the `notproduct` flag `UseDebuggerErgo1` in product builds. Now this code must be put inside `#ifndef PRODUCT`
Looks good!
-------------
Marked as reviewed by coleenp (Reviewer).
PR: https://git.openjdk.org/jdk/pull/10072
More information about the hotspot-runtime-dev
mailing list