< prev index next >

src/hotspot/share/gc/shenandoah/c2/shenandoahBarrierSetC2.hpp

Print this page
rev 55609 : Eliminate extra forwarding pointer per object


  91 
  92 public:
  93   static ShenandoahBarrierSetC2* bsc2();
  94 
  95   static bool is_shenandoah_wb_pre_call(Node* call);
  96   static bool is_shenandoah_wb_call(Node* call);
  97   static bool is_shenandoah_marking_if(PhaseTransform *phase, Node* n);
  98   static bool is_shenandoah_state_load(Node* n);
  99   static bool has_only_shenandoah_wb_pre_uses(Node* n);
 100 
 101   ShenandoahBarrierSetC2State* state() const;
 102 
 103   static const TypeFunc* write_ref_field_pre_entry_Type();
 104   static const TypeFunc* shenandoah_clone_barrier_Type();
 105   static const TypeFunc* shenandoah_write_barrier_Type();
 106   virtual bool has_load_barriers() const { return true; }
 107 
 108   // This is the entry-point for the backend to perform accesses through the Access API.
 109   virtual void clone(GraphKit* kit, Node* src, Node* dst, Node* size, bool is_array) const;
 110 
 111   virtual Node* obj_allocate(PhaseMacroExpand* macro, Node* ctrl, Node* mem, Node* toobig_false, Node* size_in_bytes,
 112                              Node*& i_o, Node*& needgc_ctrl,
 113                              Node*& fast_oop_ctrl, Node*& fast_oop_rawmem,
 114                              intx prefetch_lines) const;
 115 
 116   // These are general helper methods used by C2
 117   virtual bool array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, ArrayCopyPhase phase) const;
 118   virtual void clone_barrier_at_expansion(ArrayCopyNode* ac, Node* call, PhaseIterGVN& igvn) const;
 119 
 120   // Support for GC barriers emitted during parsing
 121   virtual bool is_gc_barrier_node(Node* node) const;
 122   virtual Node* step_over_gc_barrier(Node* c) const;
 123   virtual bool expand_barriers(Compile* C, PhaseIterGVN& igvn) const;
 124   virtual bool optimize_loops(PhaseIdealLoop* phase, LoopOptsMode mode, VectorSet& visited, Node_Stack& nstack, Node_List& worklist) const;
 125   virtual bool strip_mined_loops_expanded(LoopOptsMode mode) const { return mode == LoopOptsShenandoahExpand || mode == LoopOptsShenandoahPostExpand; }
 126   virtual bool is_gc_specific_loop_opts_pass(LoopOptsMode mode) const { return mode == LoopOptsShenandoahExpand || mode == LoopOptsShenandoahPostExpand; }
 127 
 128   // Support for macro expanded GC barriers
 129   virtual void register_potential_barrier_node(Node* node) const;
 130   virtual void unregister_potential_barrier_node(Node* node) const;
 131   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
 132   virtual void enqueue_useful_gc_barrier(PhaseIterGVN* igvn, Node* node) const;
 133   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful, Compile* C) const;
 134   virtual void add_users_to_worklist(Unique_Node_List* worklist) const;
 135 




  91 
  92 public:
  93   static ShenandoahBarrierSetC2* bsc2();
  94 
  95   static bool is_shenandoah_wb_pre_call(Node* call);
  96   static bool is_shenandoah_wb_call(Node* call);
  97   static bool is_shenandoah_marking_if(PhaseTransform *phase, Node* n);
  98   static bool is_shenandoah_state_load(Node* n);
  99   static bool has_only_shenandoah_wb_pre_uses(Node* n);
 100 
 101   ShenandoahBarrierSetC2State* state() const;
 102 
 103   static const TypeFunc* write_ref_field_pre_entry_Type();
 104   static const TypeFunc* shenandoah_clone_barrier_Type();
 105   static const TypeFunc* shenandoah_write_barrier_Type();
 106   virtual bool has_load_barriers() const { return true; }
 107 
 108   // This is the entry-point for the backend to perform accesses through the Access API.
 109   virtual void clone(GraphKit* kit, Node* src, Node* dst, Node* size, bool is_array) const;
 110 





 111   // These are general helper methods used by C2
 112   virtual bool array_copy_requires_gc_barriers(bool tightly_coupled_alloc, BasicType type, bool is_clone, ArrayCopyPhase phase) const;
 113   virtual void clone_barrier_at_expansion(ArrayCopyNode* ac, Node* call, PhaseIterGVN& igvn) const;
 114 
 115   // Support for GC barriers emitted during parsing
 116   virtual bool is_gc_barrier_node(Node* node) const;
 117   virtual Node* step_over_gc_barrier(Node* c) const;
 118   virtual bool expand_barriers(Compile* C, PhaseIterGVN& igvn) const;
 119   virtual bool optimize_loops(PhaseIdealLoop* phase, LoopOptsMode mode, VectorSet& visited, Node_Stack& nstack, Node_List& worklist) const;
 120   virtual bool strip_mined_loops_expanded(LoopOptsMode mode) const { return mode == LoopOptsShenandoahExpand || mode == LoopOptsShenandoahPostExpand; }
 121   virtual bool is_gc_specific_loop_opts_pass(LoopOptsMode mode) const { return mode == LoopOptsShenandoahExpand || mode == LoopOptsShenandoahPostExpand; }
 122 
 123   // Support for macro expanded GC barriers
 124   virtual void register_potential_barrier_node(Node* node) const;
 125   virtual void unregister_potential_barrier_node(Node* node) const;
 126   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
 127   virtual void enqueue_useful_gc_barrier(PhaseIterGVN* igvn, Node* node) const;
 128   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful, Compile* C) const;
 129   virtual void add_users_to_worklist(Unique_Node_List* worklist) const;
 130 


< prev index next >