< prev index next >

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

Print this page

 38 class G1BarrierSet: public CardTableBarrierSet {
 39   friend class VMStructs;
 40  private:
 41   BufferNode::Allocator _satb_mark_queue_buffer_allocator;
 42   BufferNode::Allocator _dirty_card_queue_buffer_allocator;
 43   G1SATBMarkQueueSet _satb_mark_queue_set;
 44   G1DirtyCardQueueSet _dirty_card_queue_set;
 45 
 46   static G1BarrierSet* g1_barrier_set() {
 47     return barrier_set_cast<G1BarrierSet>(BarrierSet::barrier_set());
 48   }
 49 
 50  public:
 51   G1BarrierSet(G1CardTable* table);
 52   ~G1BarrierSet() { }
 53 
 54   virtual bool card_mark_must_follow_store() const {
 55     return true;
 56   }
 57 



 58   // Add "pre_val" to a set of objects that may have been disconnected from the
 59   // pre-marking object graph.
 60   static void enqueue(oop pre_val);
 61 
 62   static void enqueue_if_weak(DecoratorSet decorators, oop value);
 63 
 64   template <class T> void write_ref_array_pre_work(T* dst, size_t count);
 65   virtual void write_ref_array_pre(oop* dst, size_t count, bool dest_uninitialized);
 66   virtual void write_ref_array_pre(narrowOop* dst, size_t count, bool dest_uninitialized);
 67 
 68   template <DecoratorSet decorators, typename T>
 69   void write_ref_field_pre(T* field);
 70 
 71   // NB: if you do a whole-heap invalidation, the "usual invariant" defined
 72   // above no longer applies.
 73   void invalidate(MemRegion mr);
 74 
 75   void write_region(MemRegion mr)         { invalidate(mr); }
 76   void write_ref_array_work(MemRegion mr) { invalidate(mr); }
 77 

 38 class G1BarrierSet: public CardTableBarrierSet {
 39   friend class VMStructs;
 40  private:
 41   BufferNode::Allocator _satb_mark_queue_buffer_allocator;
 42   BufferNode::Allocator _dirty_card_queue_buffer_allocator;
 43   G1SATBMarkQueueSet _satb_mark_queue_set;
 44   G1DirtyCardQueueSet _dirty_card_queue_set;
 45 
 46   static G1BarrierSet* g1_barrier_set() {
 47     return barrier_set_cast<G1BarrierSet>(BarrierSet::barrier_set());
 48   }
 49 
 50  public:
 51   G1BarrierSet(G1CardTable* table);
 52   ~G1BarrierSet() { }
 53 
 54   virtual bool card_mark_must_follow_store() const {
 55     return true;
 56   }
 57 
 58   // Loom support
 59   static bool requires_barriers(oop obj);
 60 
 61   // Add "pre_val" to a set of objects that may have been disconnected from the
 62   // pre-marking object graph.
 63   static void enqueue(oop pre_val);
 64 
 65   static void enqueue_if_weak(DecoratorSet decorators, oop value);
 66 
 67   template <class T> void write_ref_array_pre_work(T* dst, size_t count);
 68   virtual void write_ref_array_pre(oop* dst, size_t count, bool dest_uninitialized);
 69   virtual void write_ref_array_pre(narrowOop* dst, size_t count, bool dest_uninitialized);
 70 
 71   template <DecoratorSet decorators, typename T>
 72   void write_ref_field_pre(T* field);
 73 
 74   // NB: if you do a whole-heap invalidation, the "usual invariant" defined
 75   // above no longer applies.
 76   void invalidate(MemRegion mr);
 77 
 78   void write_region(MemRegion mr)         { invalidate(mr); }
 79   void write_ref_array_work(MemRegion mr) { invalidate(mr); }
 80 
< prev index next >