RFR: 8338139: {ClassLoading, Memory}MXBean::isVerbose methods are inconsistent with their setVerbose methods
Stefan Karlsson
stefank at openjdk.org
Mon Aug 19 19:47:49 UTC 2024
On Mon, 19 Aug 2024 16:38:24 GMT, Daniel D. Daugherty <dcubed at openjdk.org> wrote:
>> test/jdk/java/lang/management/ClassLoadingMXBean/TestVerboseClassLoading.java line 36:
>>
>>> 34: * @run main/othervm -Xlog:class+load=trace TestVerboseClassLoading false
>>> 35: * @run main/othervm -Xlog:class+load=debug TestVerboseClassLoading false
>>> 36: * @run main/othervm -Xlog:class+load=info TestVerboseClassLoading false
>>
>> Hmm... I was expecting these to be `true`. What am I missing?
>
> Update: The CSR makes it clear that it is `-Xlog:class+load*` so all have to be set.
This is one of those places where we changed the behavior. Previously, 'isVerbose` would return true here.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20628#discussion_r1722269045
More information about the hotspot-runtime-dev
mailing list