Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/share/vm/oops/klassPS.hpp
32285 views
/*1* Copyright (c) 2007, 2013, 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_VM_OOPS_KLASSPS_HPP25#define SHARE_VM_OOPS_KLASSPS_HPP2627// Expands to Parallel Scavenge and Parallel Old declarations2829#include "utilities/macros.hpp"3031#if INCLUDE_ALL_GCS32#define PARALLEL_GC_DECLS \33virtual void oop_push_contents(PSPromotionManager* pm, oop obj); \34/* Parallel Old GC support \35\36The 2-arg version of oop_update_pointers is for objects that are \37known not to cross chunk boundaries. The 4-arg version is for \38objects that do (or may) cross chunk boundaries; it updates only those \39oops that are in the region [beg_addr, end_addr). */ \40virtual void oop_follow_contents(ParCompactionManager* cm, oop obj); \41virtual int oop_update_pointers(ParCompactionManager* cm, oop obj);4243// Pure virtual version for klass.hpp44#define PARALLEL_GC_DECLS_PV \45virtual void oop_push_contents(PSPromotionManager* pm, oop obj) = 0; \46virtual void oop_follow_contents(ParCompactionManager* cm, oop obj) = 0; \47virtual int oop_update_pointers(ParCompactionManager* cm, oop obj) = 0;48#else // INCLUDE_ALL_GCS49#define PARALLEL_GC_DECLS50#define PARALLEL_GC_DECLS_PV51#endif // INCLUDE_ALL_GCS5253#endif // SHARE_VM_OOPS_KLASSPS_HPP545556