Path: blob/master/src/hotspot/share/gc/z/zBarrierSetRuntime.hpp
40957 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*/2223#ifndef SHARE_GC_Z_ZBARRIERSETRUNTIME_HPP24#define SHARE_GC_Z_ZBARRIERSETRUNTIME_HPP2526#include "memory/allocation.hpp"27#include "oops/accessDecorators.hpp"28#include "utilities/globalDefinitions.hpp"2930class oopDesc;3132class ZBarrierSetRuntime : public AllStatic {33private:34static oopDesc* load_barrier_on_oop_field_preloaded(oopDesc* o, oop* p);35static oopDesc* load_barrier_on_weak_oop_field_preloaded(oopDesc* o, oop* p);36static oopDesc* load_barrier_on_phantom_oop_field_preloaded(oopDesc* o, oop* p);37static oopDesc* weak_load_barrier_on_oop_field_preloaded(oopDesc* o, oop* p);38static oopDesc* weak_load_barrier_on_weak_oop_field_preloaded(oopDesc* o, oop* p);39static oopDesc* weak_load_barrier_on_phantom_oop_field_preloaded(oopDesc* o, oop* p);40static void load_barrier_on_oop_array(oop* p, size_t length);41static void clone(oopDesc* src, oopDesc* dst, size_t size);4243public:44static address load_barrier_on_oop_field_preloaded_addr(DecoratorSet decorators);45static address load_barrier_on_oop_field_preloaded_addr();46static address load_barrier_on_weak_oop_field_preloaded_addr();47static address load_barrier_on_phantom_oop_field_preloaded_addr();48static address weak_load_barrier_on_oop_field_preloaded_addr();49static address weak_load_barrier_on_weak_oop_field_preloaded_addr();50static address weak_load_barrier_on_phantom_oop_field_preloaded_addr();51static address load_barrier_on_oop_array_addr();52static address clone_addr();53};5455#endif // SHARE_GC_Z_ZBARRIERSETRUNTIME_HPP565758