< prev index next >

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

Print this page

  1 /*
  2  * Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
  3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4  *
  5  * This code is free software; you can redistribute it and/or modify it
  6  * under the terms of the GNU General Public License version 2 only, as
  7  * published by the Free Software Foundation.
  8  *
  9  * This code is distributed in the hope that it will be useful, but WITHOUT
 10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  */

110                                                const Type* val_type) const;
111   virtual Node* atomic_cmpxchg_bool_at_resolved(C2AtomicParseAccess& access,
112                                                 Node* expected_val,
113                                                 Node* new_val,
114                                                 const Type* value_type) const;
115   virtual Node* atomic_xchg_at_resolved(C2AtomicParseAccess& access,
116                                         Node* new_val,
117                                         const Type* val_type) const;
118 
119 public:
120   virtual uint estimated_barrier_size(const Node* node) const;
121   virtual void* create_barrier_state(Arena* comp_arena) const;
122   virtual bool array_copy_requires_gc_barriers(bool tightly_coupled_alloc,
123                                                BasicType type,
124                                                bool is_clone,
125                                                bool is_clone_instance,
126                                                ArrayCopyPhase phase) const;
127   virtual void clone_at_expansion(PhaseMacroExpand* phase,
128                                   ArrayCopyNode* ac) const;
129 
130   virtual void elide_dominated_barrier(MachNode* mach) const;
131   virtual void late_barrier_analysis() const;
132   virtual int estimate_stub_size() const;
133   virtual void emit_stubs(CodeBuffer& cb) const;
134   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
135   virtual void eliminate_gc_barrier_data(Node* node) const;
136 
137 #ifndef PRODUCT
138   virtual void dump_barrier_data(const MachNode* mach, outputStream* st) const;
139 #endif
140 };
141 
142 #endif // SHARE_GC_Z_C2_ZBARRIERSETC2_HPP

  1 /*
  2  * Copyright (c) 2015, 2026, Oracle and/or its affiliates. All rights reserved.
  3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4  *
  5  * This code is free software; you can redistribute it and/or modify it
  6  * under the terms of the GNU General Public License version 2 only, as
  7  * published by the Free Software Foundation.
  8  *
  9  * This code is distributed in the hope that it will be useful, but WITHOUT
 10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  */

110                                                const Type* val_type) const;
111   virtual Node* atomic_cmpxchg_bool_at_resolved(C2AtomicParseAccess& access,
112                                                 Node* expected_val,
113                                                 Node* new_val,
114                                                 const Type* value_type) const;
115   virtual Node* atomic_xchg_at_resolved(C2AtomicParseAccess& access,
116                                         Node* new_val,
117                                         const Type* val_type) const;
118 
119 public:
120   virtual uint estimated_barrier_size(const Node* node) const;
121   virtual void* create_barrier_state(Arena* comp_arena) const;
122   virtual bool array_copy_requires_gc_barriers(bool tightly_coupled_alloc,
123                                                BasicType type,
124                                                bool is_clone,
125                                                bool is_clone_instance,
126                                                ArrayCopyPhase phase) const;
127   virtual void clone_at_expansion(PhaseMacroExpand* phase,
128                                   ArrayCopyNode* ac) const;
129 
130   virtual void elide_dominated_barrier(MachNode* mach, MachNode* dominator) const;
131   virtual void late_barrier_analysis() const;
132   virtual int estimate_stub_size() const;
133   virtual void emit_stubs(CodeBuffer& cb) const;
134   virtual void eliminate_gc_barrier(PhaseMacroExpand* macro, Node* node) const;
135   virtual void eliminate_gc_barrier_data(Node* node) const;
136 
137 #ifndef PRODUCT
138   virtual void dump_barrier_data(const MachNode* mach, outputStream* st) const;
139 #endif
140 };
141 
142 #endif // SHARE_GC_Z_C2_ZBARRIERSETC2_HPP
< prev index next >