Integrated: 8273112: -Xloggc:<filename> should override -verbose:gc
Xiaowei Lu
github.com+39413832+weixlu at openjdk.java.net
Fri Sep 3 05:32:32 UTC 2021
On Mon, 30 Aug 2021 07:09:54 GMT, Xiaowei Lu <github.com+39413832+weixlu at openjdk.org> wrote:
> According to java 16 specifications for java command (https://docs.oracle.com/en/java/javase/16/docs/specs/man/java.html), the command line option -Xloggc should override -verbose:gc if both options are given with the same java command. However, gc information still outputs to console even if gc log file is specified.
>
> $java -Xloggc:gc.log -verbose:gc -version
> [0.000s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:gc.log instead.
> [0.003s][info ][gc] Using G1
> $cat gc.log
> [0.003s][info][gc] Using G1
>
> As a result, we propose to put off the log configuration of -verbose:gc option until we are confident that there isn’t -Xloggc option.
This pull request has now been integrated.
Changeset: fa9c8657
Author: Xiaowei Lu <lxw263044 at alibaba-inc.com>
Committer: David Holmes <dholmes at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/fa9c8657dfaa2018f501de1a8aa62f004342c245
Stats: 19 lines in 2 files changed: 11 ins; 1 del; 7 mod
8273112: -Xloggc:<filename> should override -verbose:gc
Reviewed-by: iklam, dholmes
-------------
PR: https://git.openjdk.java.net/jdk/pull/5295
More information about the hotspot-runtime-dev
mailing list