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

Thu, 12 Oct 2017 21:27:07 +0800

author
aoqi
date
Thu, 12 Oct 2017 21:27:07 +0800
changeset 7535
7ae4e26cb1e0
parent 7118
227a9e5e4b4a
parent 6876
710a3c8b516e
permissions
-rw-r--r--

merge

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 2011, 2013, 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_VMSTRUCTS_G1_HPP
aoqi@0 26 #define SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP
aoqi@0 27
aoqi@0 28 #include "gc_implementation/g1/heapRegion.hpp"
tschatzl@7091 29 #include "gc_implementation/g1/heapRegionManager.inline.hpp"
aoqi@0 30 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
aoqi@0 31
aoqi@0 32 #define VM_STRUCTS_G1(nonstatic_field, static_field) \
aoqi@0 33 \
aoqi@0 34 static_field(HeapRegion, GrainBytes, size_t) \
aoqi@0 35 static_field(HeapRegion, LogOfHRGrainBytes, int) \
aoqi@0 36 \
mgerdin@6990 37 nonstatic_field(G1OffsetTableContigSpace, _top, HeapWord*) \
mgerdin@6990 38 \
aoqi@0 39 nonstatic_field(G1HeapRegionTable, _base, address) \
aoqi@0 40 nonstatic_field(G1HeapRegionTable, _length, size_t) \
aoqi@0 41 nonstatic_field(G1HeapRegionTable, _biased_base, address) \
aoqi@0 42 nonstatic_field(G1HeapRegionTable, _bias, size_t) \
aoqi@0 43 nonstatic_field(G1HeapRegionTable, _shift_by, uint) \
aoqi@0 44 \
tschatzl@7091 45 nonstatic_field(HeapRegionManager, _regions, G1HeapRegionTable) \
tschatzl@7091 46 nonstatic_field(HeapRegionManager, _num_committed, uint) \
aoqi@0 47 \
sjohanss@7118 48 nonstatic_field(G1Allocator, _summary_bytes_used, size_t) \
sjohanss@7118 49 \
tschatzl@7091 50 nonstatic_field(G1CollectedHeap, _hrm, HeapRegionManager) \
aoqi@0 51 nonstatic_field(G1CollectedHeap, _g1mm, G1MonitoringSupport*) \
aoqi@0 52 nonstatic_field(G1CollectedHeap, _old_set, HeapRegionSetBase) \
aoqi@0 53 nonstatic_field(G1CollectedHeap, _humongous_set, HeapRegionSetBase) \
sjohanss@7118 54 nonstatic_field(G1CollectedHeap, _allocator, G1Allocator*) \
aoqi@0 55 \
aoqi@0 56 nonstatic_field(G1MonitoringSupport, _eden_committed, size_t) \
aoqi@0 57 nonstatic_field(G1MonitoringSupport, _eden_used, size_t) \
aoqi@0 58 nonstatic_field(G1MonitoringSupport, _survivor_committed, size_t) \
aoqi@0 59 nonstatic_field(G1MonitoringSupport, _survivor_used, size_t) \
aoqi@0 60 nonstatic_field(G1MonitoringSupport, _old_committed, size_t) \
aoqi@0 61 nonstatic_field(G1MonitoringSupport, _old_used, size_t) \
aoqi@0 62 \
aoqi@0 63 nonstatic_field(HeapRegionSetBase, _count, HeapRegionSetCount) \
aoqi@0 64 \
aoqi@0 65 nonstatic_field(HeapRegionSetCount, _length, uint) \
aoqi@0 66 nonstatic_field(HeapRegionSetCount, _capacity, size_t) \
aoqi@0 67
aoqi@0 68
aoqi@0 69 #define VM_TYPES_G1(declare_type, declare_toplevel_type) \
aoqi@0 70 \
aoqi@0 71 declare_toplevel_type(G1HeapRegionTable) \
aoqi@0 72 \
aoqi@0 73 declare_type(G1CollectedHeap, SharedHeap) \
aoqi@0 74 \
mgerdin@6990 75 declare_type(G1OffsetTableContigSpace, CompactibleSpace) \
mgerdin@6990 76 declare_type(HeapRegion, G1OffsetTableContigSpace) \
sjohanss@7118 77 declare_toplevel_type(HeapRegionManager) \
aoqi@0 78 declare_toplevel_type(HeapRegionSetBase) \
aoqi@0 79 declare_toplevel_type(HeapRegionSetCount) \
aoqi@0 80 declare_toplevel_type(G1MonitoringSupport) \
sjohanss@7118 81 declare_toplevel_type(G1Allocator) \
aoqi@0 82 \
aoqi@0 83 declare_toplevel_type(G1CollectedHeap*) \
aoqi@0 84 declare_toplevel_type(HeapRegion*) \
aoqi@0 85 declare_toplevel_type(G1MonitoringSupport*) \
sjohanss@7118 86 declare_toplevel_type(G1Allocator*) \
aoqi@0 87
aoqi@0 88
aoqi@0 89 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP

mercurial