< prev index next >
src/hotspot/share/gc/shenandoah/shenandoahHeapRegion.cpp
Print this page
*** 685,695 ****
}
_state = to;
}
void ShenandoahHeapRegion::record_pin() {
! Atomic::add((size_t)1, &_critical_pins);
}
void ShenandoahHeapRegion::record_unpin() {
assert(pin_count() > 0, "Region " SIZE_FORMAT " should have non-zero pins", region_number());
Atomic::sub((size_t)1, &_critical_pins);
--- 685,695 ----
}
_state = to;
}
void ShenandoahHeapRegion::record_pin() {
! Atomic::add(&_critical_pins, (size_t)1);
}
void ShenandoahHeapRegion::record_unpin() {
assert(pin_count() > 0, "Region " SIZE_FORMAT " should have non-zero pins", region_number());
Atomic::sub((size_t)1, &_critical_pins);
< prev index next >