How to get reference processing logging?

Andrew Haley aph at redhat.com
Wed Dec 7 11:08:01 UTC 2016


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.

Thanks,

Andrew.




More information about the hotspot-gc-dev mailing list