Path: blob/master/src/hotspot/share/gc/shared/c1/modRefBarrierSetC1.hpp
40974 views
/*1* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef SHARE_GC_SHARED_C1_MODREFBARRIERSETC1_HPP25#define SHARE_GC_SHARED_C1_MODREFBARRIERSETC1_HPP2627#include "gc/shared/c1/barrierSetC1.hpp"2829// The ModRefBarrierSetC1 filters away accesses on BasicTypes other30// than T_OBJECT/T_ARRAY (oops). The oop accesses call one of the protected31// accesses, which are overridden in the concrete BarrierSetAssembler.3233class ModRefBarrierSetC1 : public BarrierSetC1 {34protected:35virtual void pre_barrier(LIRAccess& access, LIR_Opr addr_opr,36LIR_Opr pre_val, CodeEmitInfo* info) {}37virtual void post_barrier(LIRAccess& access, LIR_OprDesc* addr,38LIR_OprDesc* new_val) {}3940virtual LIR_Opr resolve_address(LIRAccess& access, bool resolve_in_register);4142virtual void store_at_resolved(LIRAccess& access, LIR_Opr value);4344virtual LIR_Opr atomic_cmpxchg_at_resolved(LIRAccess& access, LIRItem& cmp_value, LIRItem& new_value);4546virtual LIR_Opr atomic_xchg_at_resolved(LIRAccess& access, LIRItem& value);47};4849#endif // SHARE_GC_SHARED_C1_MODREFBARRIERSETC1_HPP505152