RFR: 8273112: -Xloggc and -Xlog should override -verbose

Xiaowei Lu github.com+39413832+weixlu at openjdk.java.net
Wed Sep 1 07:53:46 UTC 2021


On Wed, 1 Sep 2021 06:06:44 GMT, David Holmes <dholmes at openjdk.org> wrote:

> I find it very unfortunate that it states that `-verbose:gc` will be overridden by `-Xloggc:<filename>` and `-Xlog` as that makes the logic for dealing with this GC case very convoluted. It would make much more sense that `-verbose:x` simply be treated as its corresponding `-Xlog` variant. Then we would need no special logic at all.

Things are quite easy if `-verbose:x` is treated as `-Xlog`. Multiple -Xlog arguments for the same output override each other in their given order, according to https://docs.oracle.com/en/java/javase/16/docs/specs/man/java.html.

> I'm unclear how the non-GC versions of `-verbose:x` are treated with respect to explicit `-Xlog:x` commands?

I have looked up some documents but unfortunately haven't found relevant statements.

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

PR: https://git.openjdk.java.net/jdk/pull/5295


More information about the hotspot-runtime-dev mailing list