Integrated: 8335154: jcmd VM.classes -verbose=false does not set verbose to false
Kevin Walls
kevinw at openjdk.org
Thu Jun 27 07:57:17 UTC 2024
On Wed, 26 Jun 2024 10:23:45 GMT, Kevin Walls <kevinw at openjdk.org> wrote:
> VM.classes uses:
>
> 995 VM_PrintClasses vmop(output(), _verbose.is_set());
>
> _verbose.is_set() is wrong: it could be set, but set to false.
>
> _verbose.value() should be used (see other examples such as StringtableDCmd::execute).
>
> With this change -verbose=false will turn off verbose mode like all other DCmds which accept -verbose
>
> bash-4.2$ jcmd 20193 VM.classes -verbose=false | wc -l
> 2490
> bash-4.2$ jcmd 20193 VM.classes -verbose=true | wc -l
> 90258
This pull request has now been integrated.
Changeset: 37e7698c
Author: Kevin Walls <kevinw at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/37e7698c29b8673b904945d397f0698ccd16d27b
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
8335154: jcmd VM.classes -verbose=false does not set verbose to false
Reviewed-by: dholmes, stuefe
-------------
PR: https://git.openjdk.org/jdk/pull/19901
More information about the serviceability-dev
mailing list