mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8129626: G1: set_in_progress() and clear_started() needs a barrier on non-TSO platforms
Also reviewed by vitalyd@gmail.com Reviewed-by: pliden, bpittore, bdelsart
This commit is contained in:
parent
d60d6fdf40
commit
5f4a67087f
3 changed files with 19 additions and 16 deletions
|
@ -44,8 +44,7 @@ SurrogateLockerThread*
|
|||
ConcurrentMarkThread::ConcurrentMarkThread(ConcurrentMark* cm) :
|
||||
ConcurrentGCThread(),
|
||||
_cm(cm),
|
||||
_started(false),
|
||||
_in_progress(false),
|
||||
_state(Idle),
|
||||
_vtime_accum(0.0),
|
||||
_vtime_mark_accum(0.0) {
|
||||
|
||||
|
@ -307,7 +306,6 @@ void ConcurrentMarkThread::sleepBeforeNextCycle() {
|
|||
|
||||
if (started()) {
|
||||
set_in_progress();
|
||||
clear_started();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue