Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/concurrentMark.cpp @ 6219:922993931b3d
7178361: G1: Make sure that PrintGC and PrintGCDetails use the same timing for the GC pause
Summary: Also reviewed by: vitalyd@gmail.com. Move the timing out of G1CollectorPolicy into the G1GCPhaseTimes class
Reviewed-by: johnc
author | brutisso |
---|---|
date | Wed, 11 Jul 2012 22:47:38 +0200 |
parents | 8a2e5a6a19a4 |
children | 3a431b605145 |
comparison
equal
deleted
inserted
replaced
6196:3759236eea14 | 6219:922993931b3d |
---|---|
3151 if (should_yield()) { | 3151 if (should_yield()) { |
3152 if (worker_id == 0) { | 3152 if (worker_id == 0) { |
3153 _g1h->g1_policy()->record_concurrent_pause(); | 3153 _g1h->g1_policy()->record_concurrent_pause(); |
3154 } | 3154 } |
3155 cmThread()->yield(); | 3155 cmThread()->yield(); |
3156 if (worker_id == 0) { | |
3157 _g1h->g1_policy()->record_concurrent_pause_end(); | |
3158 } | |
3159 return true; | 3156 return true; |
3160 } else { | 3157 } else { |
3161 return false; | 3158 return false; |
3162 } | 3159 } |
3163 } | 3160 } |