equal
deleted
inserted
replaced
29 |
29 |
30 // Alternating epochs on each rotation allow for concurrent tagging. |
30 // Alternating epochs on each rotation allow for concurrent tagging. |
31 // The regular epoch shift happens only during a safepoint. |
31 // The regular epoch shift happens only during a safepoint. |
32 // The fence is there only for the emergency dump case which happens outside of safepoint. |
32 // The fence is there only for the emergency dump case which happens outside of safepoint. |
33 bool JfrTraceIdEpoch::_epoch_state = false; |
33 bool JfrTraceIdEpoch::_epoch_state = false; |
34 bool volatile JfrTraceIdEpoch::_klass_tagged_in_epoch = false; |
34 bool volatile JfrTraceIdEpoch::_tag_state = false; |
35 |
35 |
36 void JfrTraceIdEpoch::shift_epoch() { |
36 void JfrTraceIdEpoch::shift_epoch() { |
37 _epoch_state = !_epoch_state; |
37 _epoch_state = !_epoch_state; |
38 if (!SafepointSynchronize::is_at_safepoint()) { |
38 if (!SafepointSynchronize::is_at_safepoint()) { |
39 OrderAccess::fence(); |
39 OrderAccess::fence(); |