src/share/vm/gc_implementation/g1/g1_specialized_oop_closures.hpp

Tue, 17 Oct 2017 12:58:25 +0800

author
aoqi
date
Tue, 17 Oct 2017 12:58:25 +0800
changeset 7994
04ff2f6cd0eb
parent 7535
7ae4e26cb1e0
permissions
-rw-r--r--

merge

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 *
aoqi@0 5 * This code is free software; you can redistribute it and/or modify it
aoqi@0 6 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 * published by the Free Software Foundation.
aoqi@0 8 *
aoqi@0 9 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 12 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 13 * accompanied this code).
aoqi@0 14 *
aoqi@0 15 * You should have received a copy of the GNU General Public License version
aoqi@0 16 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 18 *
aoqi@0 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 20 * or visit www.oracle.com if you need additional information or have any
aoqi@0 21 * questions.
aoqi@0 22 *
aoqi@0 23 */
aoqi@0 24
aoqi@0 25 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1_SPECIALIZED_OOP_CLOSURES_HPP
aoqi@0 26 #define SHARE_VM_GC_IMPLEMENTATION_G1_G1_SPECIALIZED_OOP_CLOSURES_HPP
aoqi@0 27
aoqi@0 28 // The following OopClosure types get specialized versions of
aoqi@0 29 // "oop_oop_iterate" that invoke the closures' do_oop methods
aoqi@0 30 // non-virtually, using a mechanism defined in this file. Extend these
aoqi@0 31 // macros in the obvious way to add specializations for new closures.
aoqi@0 32
aoqi@0 33 enum G1Barrier {
aoqi@0 34 G1BarrierNone,
aoqi@0 35 G1BarrierEvac,
aoqi@0 36 G1BarrierKlass
aoqi@0 37 };
aoqi@0 38
stefank@6992 39 enum G1Mark {
stefank@6992 40 G1MarkNone,
stefank@6992 41 G1MarkFromRoot,
stefank@6992 42 G1MarkPromotedFromRoot
stefank@6992 43 };
stefank@6992 44
stefank@6992 45 // Forward declarations.
stefank@6992 46
stefank@6992 47 template<G1Barrier barrier, G1Mark do_mark_object>
aoqi@0 48 class G1ParCopyClosure;
aoqi@0 49
aoqi@0 50 class G1ParScanClosure;
aoqi@0 51 class G1ParPushHeapRSClosure;
aoqi@0 52
aoqi@0 53 class FilterIntoCSClosure;
aoqi@0 54 class FilterOutOfRegionClosure;
aoqi@0 55 class G1CMOopClosure;
aoqi@0 56 class G1RootRegionScanClosure;
aoqi@0 57
aoqi@0 58 // Specialized oop closures from g1RemSet.cpp
aoqi@0 59 class G1Mux2Closure;
aoqi@0 60 class G1TriggerClosure;
aoqi@0 61 class G1InvokeIfNotTriggeredClosure;
aoqi@0 62 class G1UpdateRSOrPushRefOopClosure;
aoqi@0 63
aoqi@0 64 #ifdef FURTHER_SPECIALIZED_OOP_OOP_ITERATE_CLOSURES
aoqi@0 65 #error "FURTHER_SPECIALIZED_OOP_OOP_ITERATE_CLOSURES already defined."
aoqi@0 66 #endif
aoqi@0 67
aoqi@0 68 #define FURTHER_SPECIALIZED_OOP_OOP_ITERATE_CLOSURES(f) \
aoqi@0 69 f(G1ParScanClosure,_nv) \
aoqi@0 70 f(G1ParPushHeapRSClosure,_nv) \
aoqi@0 71 f(FilterIntoCSClosure,_nv) \
aoqi@0 72 f(FilterOutOfRegionClosure,_nv) \
aoqi@0 73 f(G1CMOopClosure,_nv) \
aoqi@0 74 f(G1RootRegionScanClosure,_nv) \
aoqi@0 75 f(G1Mux2Closure,_nv) \
aoqi@0 76 f(G1TriggerClosure,_nv) \
aoqi@0 77 f(G1InvokeIfNotTriggeredClosure,_nv) \
aoqi@0 78 f(G1UpdateRSOrPushRefOopClosure,_nv)
aoqi@0 79
aoqi@0 80 #ifdef FURTHER_SPECIALIZED_SINCE_SAVE_MARKS_CLOSURES
aoqi@0 81 #error "FURTHER_SPECIALIZED_SINCE_SAVE_MARKS_CLOSURES already defined."
aoqi@0 82 #endif
aoqi@0 83
aoqi@0 84 #define FURTHER_SPECIALIZED_SINCE_SAVE_MARKS_CLOSURES(f)
aoqi@0 85
aoqi@0 86 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1_SPECIALIZED_OOP_CLOSURES_HPP

mercurial