< prev index next >

src/hotspot/share/gc/g1/g1BarrierSet.hpp

Print this page
*** 24,10 ***
--- 24,11 ---
  
  #ifndef SHARE_GC_G1_G1BARRIERSET_HPP
  #define SHARE_GC_G1_G1BARRIERSET_HPP
  
  #include "gc/g1/g1DirtyCardQueue.hpp"
+ #include "gc/g1/g1HeapRegion.hpp"
  #include "gc/g1/g1SATBMarkQueueSet.hpp"
  #include "gc/shared/cardTable.hpp"
  #include "gc/shared/cardTableBarrierSet.hpp"
  #include "gc/shared/bufferNode.hpp"
  

*** 89,10 ***
--- 90,12 ---
  
    static G1DirtyCardQueueSet& dirty_card_queue_set() {
      return g1_barrier_set()->_dirty_card_queue_set;
    }
  
+   virtual uint grain_shift() { return G1HeapRegion::LogOfHRGrainBytes; }
+ 
    // Callbacks for runtime accesses.
    template <DecoratorSet decorators, typename BarrierSetT = G1BarrierSet>
    class AccessBarrier: public ModRefBarrierSet::AccessBarrier<decorators, BarrierSetT> {
      typedef ModRefBarrierSet::AccessBarrier<decorators, BarrierSetT> ModRef;
      typedef BarrierSet::AccessBarrier<decorators, BarrierSetT> Raw;
< prev index next >