8140508: Add utility method for logging phases to G1CollectorPolicy

Reviewed-by: mgerdin, tschatzl
This commit is contained in:
Erik Helin 2015-10-30 10:15:06 +01:00
parent 4930637288
commit d8b7d0ecd4
5 changed files with 11 additions and 3 deletions

View file

@ -362,6 +362,8 @@ class G1GCParPhasePrinter : public StackObj {
};
void G1GCPhaseTimes::print(double pause_time_sec) {
note_gc_end();
G1GCParPhasePrinter par_phase_printer(this);
if (_root_region_scan_wait_time_ms > 0.0) {