< prev index next >

src/hotspot/share/gc/shared/gcBehaviours.cpp

Print this page
*** 62,11 ***
  };
  
  bool ClosureIsUnloadingBehaviour::is_unloading(CompiledMethod* cm) const {
    if (cm->is_nmethod()) {
      IsCompiledMethodUnloadingOopClosure cl(_cl);
!     static_cast<nmethod*>(cm)->oops_do(&cl);
      return cl.is_unloading();
    } else {
      return false;
    }
  }
--- 62,11 ---
  };
  
  bool ClosureIsUnloadingBehaviour::is_unloading(CompiledMethod* cm) const {
    if (cm->is_nmethod()) {
      IsCompiledMethodUnloadingOopClosure cl(_cl);
!     static_cast<nmethod*>(cm)->oops_do(&cl, true /* allow_dead */);
      return cl.is_unloading();
    } else {
      return false;
    }
  }
< prev index next >