342N/A/*
3122N/A * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
342N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
342N/A *
342N/A * This code is free software; you can redistribute it and/or modify it
342N/A * under the terms of the GNU General Public License version 2 only, as
342N/A * published by the Free Software Foundation.
342N/A *
342N/A * This code is distributed in the hope that it will be useful, but WITHOUT
342N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
342N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
342N/A * version 2 for more details (a copy is included in the LICENSE file that
342N/A * accompanied this code).
342N/A *
342N/A * You should have received a copy of the GNU General Public License version
342N/A * 2 along with this work; if not, write to the Free Software Foundation,
342N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
342N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
342N/A *
342N/A */
342N/A
1879N/A#ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1_SPECIALIZED_OOP_CLOSURES_HPP
1879N/A#define SHARE_VM_GC_IMPLEMENTATION_G1_G1_SPECIALIZED_OOP_CLOSURES_HPP
1879N/A
342N/A// The following OopClosure types get specialized versions of
342N/A// "oop_oop_iterate" that invoke the closures' do_oop methods
342N/A// non-virtually, using a mechanism defined in this file. Extend these
342N/A// macros in the obvious way to add specializations for new closures.
342N/A
342N/A// Forward declarations.
342N/Aenum G1Barrier {
3122N/A G1BarrierNone,
3122N/A G1BarrierRS,
3122N/A G1BarrierEvac
342N/A};
342N/A
3122N/Atemplate<bool do_gen_barrier, G1Barrier barrier, bool do_mark_object>
342N/Aclass G1ParCopyClosure;
3122N/A
342N/Aclass G1ParScanClosure;
1261N/Aclass G1ParPushHeapRSClosure;
342N/A
1261N/Atypedef G1ParCopyClosure<false, G1BarrierEvac, false> G1ParScanHeapEvacClosure;
342N/A
342N/Aclass FilterIntoCSClosure;
342N/Aclass FilterOutOfRegionClosure;
2596N/Aclass G1CMOopClosure;
3122N/Aclass G1RootRegionScanClosure;
3122N/A
3122N/A// Specialized oop closures from g1RemSet.cpp
3122N/Aclass G1Mux2Closure;
3122N/Aclass G1TriggerClosure;
3122N/Aclass G1InvokeIfNotTriggeredClosure;
3122N/Aclass G1UpdateRSOrPushRefOopClosure;
342N/A
342N/A#ifdef FURTHER_SPECIALIZED_OOP_OOP_ITERATE_CLOSURES
342N/A#error "FURTHER_SPECIALIZED_OOP_OOP_ITERATE_CLOSURES already defined."
342N/A#endif
342N/A
342N/A#define FURTHER_SPECIALIZED_OOP_OOP_ITERATE_CLOSURES(f) \
342N/A f(G1ParScanHeapEvacClosure,_nv) \
342N/A f(G1ParScanClosure,_nv) \
1261N/A f(G1ParPushHeapRSClosure,_nv) \
342N/A f(FilterIntoCSClosure,_nv) \
2596N/A f(FilterOutOfRegionClosure,_nv) \
3122N/A f(G1CMOopClosure,_nv) \
3122N/A f(G1RootRegionScanClosure,_nv) \
3122N/A f(G1Mux2Closure,_nv) \
3122N/A f(G1TriggerClosure,_nv) \
3122N/A f(G1InvokeIfNotTriggeredClosure,_nv) \
3122N/A f(G1UpdateRSOrPushRefOopClosure,_nv)
342N/A
342N/A#ifdef FURTHER_SPECIALIZED_SINCE_SAVE_MARKS_CLOSURES
342N/A#error "FURTHER_SPECIALIZED_SINCE_SAVE_MARKS_CLOSURES already defined."
342N/A#endif
342N/A
342N/A#define FURTHER_SPECIALIZED_SINCE_SAVE_MARKS_CLOSURES(f)
1879N/A
1879N/A#endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1_SPECIALIZED_OOP_CLOSURES_HPP