7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause

Also reviewed by: vitalyd@gmail.com. Move the timing out of G1CollectorPolicy into the G1GCPhaseTimes class

Reviewed-by: johnc
This commit is contained in:
Bengt Rutisson 2012-07-11 22:47:38 +02:00
parent 4d512adc5e
commit 3571ee23dc
8 changed files with 732 additions and 663 deletions

View file

@ -3153,9 +3153,6 @@ bool ConcurrentMark::do_yield_check(uint worker_id) {
_g1h->g1_policy()->record_concurrent_pause();
}
cmThread()->yield();
if (worker_id == 0) {
_g1h->g1_policy()->record_concurrent_pause_end();
}
return true;
} else {
return false;