< prev index next >

src/hotspot/share/gc/z/c2/zBarrierSetC2.hpp

Print this page




 169                                                 Node* expected_val,
 170                                                 Node* new_val,
 171                                                 const Type* value_type) const;
 172   virtual Node* atomic_xchg_at_resolved(C2AtomicAccess& access,
 173                                         Node* new_val,
 174                                         const Type* val_type) const;
 175 
 176 public:
 177   Node* load_barrier(GraphKit* kit,
 178                      Node* val,
 179                      Node* adr,
 180                      bool weak = false,
 181                      bool writeback = true,
 182                      bool oop_reload_allowed = true) const;
 183 
 184   virtual void* create_barrier_state(Arena* comp_arena) const;
 185   virtual bool is_gc_barrier_node(Node* node) const;
 186   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const { }
 187   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful) const;
 188   virtual void add_users_to_worklist(Unique_Node_List* worklist) const;
 189   virtual void enqueue_useful_gc_barrier(Unique_Node_List &worklist, Node* node) const;
 190   virtual void register_potential_barrier_node(Node* node) const;
 191   virtual void unregister_potential_barrier_node(Node* node) const;
 192   virtual bool array_copy_requires_gc_barriers(BasicType type) const { return true; }
 193   virtual Node* step_over_gc_barrier(Node* c) const { return c; }
 194   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
 195   // expanded later, then now is the time to do so.
 196   virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const;
 197 
 198   static void find_dominating_barriers(PhaseIterGVN& igvn);
 199   static void loop_optimize_gc_barrier(PhaseIdealLoop* phase, Node* node, bool last_round);
 200 
 201 #ifdef ASSERT
 202   virtual void verify_gc_barriers(bool post_parse) const;
 203 #endif
 204 };
 205 
 206 #endif // SHARE_GC_Z_C2_ZBARRIERSETC2_HPP


 169                                                 Node* expected_val,
 170                                                 Node* new_val,
 171                                                 const Type* value_type) const;
 172   virtual Node* atomic_xchg_at_resolved(C2AtomicAccess& access,
 173                                         Node* new_val,
 174                                         const Type* val_type) const;
 175 
 176 public:
 177   Node* load_barrier(GraphKit* kit,
 178                      Node* val,
 179                      Node* adr,
 180                      bool weak = false,
 181                      bool writeback = true,
 182                      bool oop_reload_allowed = true) const;
 183 
 184   virtual void* create_barrier_state(Arena* comp_arena) const;
 185   virtual bool is_gc_barrier_node(Node* node) const;
 186   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const { }
 187   virtual void eliminate_useless_gc_barriers(Unique_Node_List &useful) const;
 188   virtual void add_users_to_worklist(Unique_Node_List* worklist) const;
 189   virtual void enqueue_useful_gc_barrier(PhaseIterGVN* igvn, Node* node) const;
 190   virtual void register_potential_barrier_node(Node* node) const;
 191   virtual void unregister_potential_barrier_node(Node* node) const;
 192   virtual bool array_copy_requires_gc_barriers(BasicType type) const { return true; }
 193   virtual Node* step_over_gc_barrier(Node* c) const { return c; }
 194   // If the BarrierSetC2 state has kept macro nodes in its compilation unit state to be
 195   // expanded later, then now is the time to do so.
 196   virtual bool expand_macro_nodes(PhaseMacroExpand* macro) const;
 197 
 198   static void find_dominating_barriers(PhaseIterGVN& igvn);
 199   static void loop_optimize_gc_barrier(PhaseIdealLoop* phase, Node* node, bool last_round);
 200 
 201 #ifdef ASSERT
 202   virtual void verify_gc_barriers(bool post_parse) const;
 203 #endif
 204 };
 205 
 206 #endif // SHARE_GC_Z_C2_ZBARRIERSETC2_HPP
< prev index next >