< prev index next >

src/hotspot/share/gc/g1/c2/g1BarrierSetC2.hpp

Print this page
rev 52415 : 8213384: Move G1/C2 barrier verification into G1BarrierSetC2


  71                     uint oop_alias_idx,
  72                     Node* index,
  73                     Node* index_adr,
  74                     Node* buffer,
  75                     const TypeFunc* tf) const;
  76 
  77   // Helper for unsafe accesses, that may or may not be on the referent field.
  78   // Generates the guards that check whether the result of
  79   // Unsafe.getReference should be recorded in an SATB log buffer.
  80   void insert_pre_barrier(GraphKit* kit, Node* base_oop, Node* offset, Node* pre_val, bool need_mem_bar) const;
  81 
  82   static const TypeFunc* write_ref_field_pre_entry_Type();
  83   static const TypeFunc* write_ref_field_post_entry_Type();
  84 
  85   virtual Node* load_at_resolved(C2Access& access, const Type* val_type) const;
  86 
  87  public:
  88   virtual bool is_gc_barrier_node(Node* node) const;
  89   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
  90   virtual Node* step_over_gc_barrier(Node* c) const;




  91 };
  92 
  93 #endif // SHARE_GC_SHARED_C2_G1BARRIERSETC2_HPP


  71                     uint oop_alias_idx,
  72                     Node* index,
  73                     Node* index_adr,
  74                     Node* buffer,
  75                     const TypeFunc* tf) const;
  76 
  77   // Helper for unsafe accesses, that may or may not be on the referent field.
  78   // Generates the guards that check whether the result of
  79   // Unsafe.getReference should be recorded in an SATB log buffer.
  80   void insert_pre_barrier(GraphKit* kit, Node* base_oop, Node* offset, Node* pre_val, bool need_mem_bar) const;
  81 
  82   static const TypeFunc* write_ref_field_pre_entry_Type();
  83   static const TypeFunc* write_ref_field_post_entry_Type();
  84 
  85   virtual Node* load_at_resolved(C2Access& access, const Type* val_type) const;
  86 
  87  public:
  88   virtual bool is_gc_barrier_node(Node* node) const;
  89   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
  90   virtual Node* step_over_gc_barrier(Node* c) const;
  91 
  92 #ifdef ASSERT
  93   virtual void verify_gc_barriers(Compile* compile, CompilePhase phase) const;
  94 #endif
  95 };
  96 
  97 #endif // SHARE_GC_SHARED_C2_G1BARRIERSETC2_HPP
< prev index next >