mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
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:
parent
4d512adc5e
commit
3571ee23dc
8 changed files with 732 additions and 663 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue