< prev index next >

src/hotspot/share/gc/shared/cardTableBarrierSet.hpp

Print this page
@@ -89,10 +89,15 @@
  
    virtual void on_slowpath_allocation_exit(JavaThread* thread, oop new_obj);
  
    virtual void print_on(outputStream* st) const;
  
+   // The AOT code cache manager needs to know the current card shift
+   // and, for some barrier sets, the region grain size shift
+   uint card_shift() const { return _card_table->card_shift(); }
+   virtual uint grain_shift() { return 0; }
+ 
    template <DecoratorSet decorators, typename BarrierSetT = CardTableBarrierSet>
    class AccessBarrier: public BarrierSet::AccessBarrier<decorators, BarrierSetT> {
      typedef BarrierSet::AccessBarrier<decorators, BarrierSetT> Raw;
  
    public:
< prev index next >