< prev index next >

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

Print this page




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


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