Skip to content
Permalink
Browse files
8266432: ZGC: GC allocation stalls can trigger deadlocks
Reviewed-by: pliden, ayang
  • Loading branch information
stefank committed May 4, 2021
1 parent 30ccd80 commit ce1bc9d8bc7e6acb189a13fdadb573fa08b5c2f2
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/hotspot/share/gc/z/zForwarding.cpp
@@ -132,12 +132,8 @@ void ZForwarding::release_page() {

bool ZForwarding::wait_page_released() const {
if (Atomic::load_acquire(&_ref_count) != 0) {
ZLocker<ZConditionLock> locker(&_ref_lock);
if (_ref_abort) {
return false;
}

ZStatTimer timer(ZCriticalPhaseRelocationStall);
ZLocker<ZConditionLock> locker(&_ref_lock);
while (Atomic::load_acquire(&_ref_count) != 0) {
if (_ref_abort) {
return false;

0 comments on commit ce1bc9d

Please sign in to comment.