RFR (S): 8150630: Add logging for ParScanThreadState merge phase

Thomas Schatzl thomas.schatzl at oracle.com
Thu Feb 25 13:35:18 UTC 2016


Hi all,

  can I have reviews for this small addition to the logging? It
measures the time gc takes for merging the information gathered by gc
worker threads down into the global state.

Recent work has shown that this phase may take a long time, because it
is O(#threads * size(young gen)), which is particularly bad on large
machines with a large young gen (like 200 threads, 20k young gen
regions). So I thought it would be nice to get timing measurement to
increase awareness of the problem. Or at least be able to rule it out
as a problem...

Again, I factored out the "phase" into an extra method to have all
relevant code together (timing + actual work).

This change is based on the changes for JDK-8076463.

CR:
https://bugs.openjdk.java.net/browse/JDK-8150630
Webrev:
http://cr.openjdk.java.net/~tschatzl/8150630/webrev/
Testing:
jprt, test case

Thanks,
  Thomas


More information about the hotspot-gc-dev mailing list