How to get reference processing logging?
thomas.schatzl at oracle.com
Wed Dec 7 11:15:12 UTC 2016
On Wed, 2016-12-07 at 11:08 +0000, Andrew Haley wrote:
> I've tried "-Xlog:gc::ref" and "-Xlog:gc=ref" but neither works.
> I want to see this output:
> log_debug(gc, ref)("Ref Counts: Soft: " SIZE_FORMAT " Weak: "
> SIZE_FORMAT " Final: " SIZE_FORMAT " Phantom: " SIZE_FORMAT,
> stats.soft_count(), stats.weak_count(),
> stats.final_count(), stats.phantom_count());
> log_develop_trace(gc, ref)("JNI Weak Reference count: "
> SIZE_FORMAT, count_jni_refs());
> I tried -Xlog:help and searc hed on the web for information about the
> -Xlog syntax, but no luck.
-Xlog:help gives a pretty comprehensive output with BNF syntax
description here. It also includes a lot of examples.
Particularly the sentence below the BNF string gives an explanation of
"what" should be.
Maybe you have some suggestions to improve the text?
More information about the hotspot-gc-dev