< prev index next >

src/hotspot/share/gc/z/zBarrierSet.inline.hpp

Print this page
@@ -26,10 +26,11 @@
  
  #include "gc/z/zBarrierSet.hpp"
  
  #include "gc/shared/accessBarrierSupport.inline.hpp"
  #include "gc/z/zBarrier.inline.hpp"
+ #include "gc/z/zCollectedHeap.inline.hpp"
  #include "utilities/debug.hpp"
  
  template <DecoratorSet decorators, typename BarrierSetT>
  template <DecoratorSet expected>
  inline void ZBarrierSet::AccessBarrier<decorators, BarrierSetT>::verify_decorators_present() {

@@ -237,6 +238,10 @@
    verify_decorators_absent<AS_NO_KEEPALIVE>();
  
    return Raw::oop_atomic_xchg_not_in_heap(addr, new_value);
  }
  
+ inline bool ZBarrierSet::requires_barriers(oop obj) {
+   return ZCollectedHeap::heap()->ZCollectedHeap::requires_barriers(obj);
+ }
+ 
  #endif // SHARE_GC_Z_ZBARRIERSET_INLINE_HPP
< prev index next >