equal
deleted
inserted
replaced
74 void ShenandoahHeapRegionCounters::update() { |
74 void ShenandoahHeapRegionCounters::update() { |
75 if (ShenandoahRegionSampling) { |
75 if (ShenandoahRegionSampling) { |
76 jlong current = os::javaTimeMillis(); |
76 jlong current = os::javaTimeMillis(); |
77 jlong last = _last_sample_millis; |
77 jlong last = _last_sample_millis; |
78 if (current - last > ShenandoahRegionSamplingRate && |
78 if (current - last > ShenandoahRegionSamplingRate && |
79 Atomic::cmpxchg(current, &_last_sample_millis, last) == last) { |
79 Atomic::cmpxchg(&_last_sample_millis, last, current) == last) { |
80 |
80 |
81 ShenandoahHeap* heap = ShenandoahHeap::heap(); |
81 ShenandoahHeap* heap = ShenandoahHeap::heap(); |
82 jlong status = 0; |
82 jlong status = 0; |
83 if (heap->is_concurrent_mark_in_progress()) status |= 1 << 0; |
83 if (heap->is_concurrent_mark_in_progress()) status |= 1 << 0; |
84 if (heap->is_evacuation_in_progress()) status |= 1 << 1; |
84 if (heap->is_evacuation_in_progress()) status |= 1 << 1; |