< prev index next >
src/hotspot/share/gc/shenandoah/shenandoahHeap.inline.hpp
Print this page
rev 55400 : 8225813: Shenandoah: Obsolete ShenandoahSuspendibleWorkers flag, as suspendible workers are required
*** 185,195 ****
inline bool ShenandoahHeap::cancelled_gc() const {
return _cancelled_gc.get() == CANCELLED;
}
inline bool ShenandoahHeap::check_cancelled_gc_and_yield(bool sts_active) {
! if (! (sts_active && ShenandoahSuspendibleWorkers)) {
return cancelled_gc();
}
jbyte prev = _cancelled_gc.cmpxchg(NOT_CANCELLED, CANCELLABLE);
if (prev == CANCELLABLE || prev == NOT_CANCELLED) {
--- 185,195 ----
inline bool ShenandoahHeap::cancelled_gc() const {
return _cancelled_gc.get() == CANCELLED;
}
inline bool ShenandoahHeap::check_cancelled_gc_and_yield(bool sts_active) {
! if (!sts_active) {
return cancelled_gc();
}
jbyte prev = _cancelled_gc.cmpxchg(NOT_CANCELLED, CANCELLABLE);
if (prev == CANCELLABLE || prev == NOT_CANCELLED) {
< prev index next >