< prev index next >

src/hotspot/share/gc/shared/barrierSet.inline.hpp

Print this page
*** 24,10 ***
--- 24,11 ---
  #ifndef SHARE_GC_SHARED_BARRIERSET_INLINE_HPP
  #define SHARE_GC_SHARED_BARRIERSET_INLINE_HPP
  
  #include "gc/shared/barrierSet.hpp"
  
+ #include "gc/shared/collectedHeap.hpp"
  #include "oops/accessDecorators.hpp"
  #include "oops/arrayOop.hpp"
  #include "oops/compressedOops.inline.hpp"
  #include "oops/objArrayOop.inline.hpp"
  #include "oops/oop.hpp"

*** 56,6 ***
--- 57,10 ---
    }
  
    return true;
  }
  
+ inline bool BarrierSet::requires_barriers(oop obj) {
+   return Universe::heap()->requires_barriers(obj);
+ }
+ 
  #endif // SHARE_GC_SHARED_BARRIERSET_INLINE_HPP
< prev index next >