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

Mon, 21 Jul 2014 09:41:04 +0200

author
tschatzl
date
Mon, 21 Jul 2014 09:41:04 +0200
changeset 6937
b0c374311c4e
parent 6385
58fc1b1523dc
child 6876
710a3c8b516e
child 6990
1526a938e670
permissions
-rw-r--r--

8035400: Move G1ParScanThreadState into its own files
Summary: Extract the G1ParScanThreadState class from G1CollectedHeap.?pp into its own files.
Reviewed-by: brutisso, mgerdin

tonyp@3168 1 /*
mikael@6198 2 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
tonyp@3168 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
tonyp@3168 4 *
tonyp@3168 5 * This code is free software; you can redistribute it and/or modify it
tonyp@3168 6 * under the terms of the GNU General Public License version 2 only, as
tonyp@3168 7 * published by the Free Software Foundation.
tonyp@3168 8 *
tonyp@3168 9 * This code is distributed in the hope that it will be useful, but WITHOUT
tonyp@3168 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
tonyp@3168 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
tonyp@3168 12 * version 2 for more details (a copy is included in the LICENSE file that
tonyp@3168 13 * accompanied this code).
tonyp@3168 14 *
tonyp@3168 15 * You should have received a copy of the GNU General Public License version
tonyp@3168 16 * 2 along with this work; if not, write to the Free Software Foundation,
tonyp@3168 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
tonyp@3168 18 *
tonyp@3168 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
tonyp@3168 20 * or visit www.oracle.com if you need additional information or have any
tonyp@3168 21 * questions.
tonyp@3168 22 *
tonyp@3168 23 */
tonyp@3168 24
tonyp@3168 25 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP
tonyp@3168 26 #define SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP
tonyp@3168 27
tonyp@3168 28 #include "gc_implementation/g1/heapRegion.hpp"
tonyp@3168 29 #include "gc_implementation/g1/heapRegionSeq.inline.hpp"
tonyp@3168 30 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
tonyp@3168 31
tonyp@3168 32 #define VM_STRUCTS_G1(nonstatic_field, static_field) \
tonyp@3168 33 \
twisti@5726 34 static_field(HeapRegion, GrainBytes, size_t) \
twisti@5726 35 static_field(HeapRegion, LogOfHRGrainBytes, int) \
tonyp@3168 36 \
tschatzl@5773 37 nonstatic_field(G1HeapRegionTable, _base, address) \
tschatzl@5773 38 nonstatic_field(G1HeapRegionTable, _length, size_t) \
tschatzl@5773 39 nonstatic_field(G1HeapRegionTable, _biased_base, address) \
tschatzl@5773 40 nonstatic_field(G1HeapRegionTable, _bias, size_t) \
tschatzl@5773 41 nonstatic_field(G1HeapRegionTable, _shift_by, uint) \
tschatzl@5773 42 \
tschatzl@5773 43 nonstatic_field(HeapRegionSeq, _regions, G1HeapRegionTable) \
tschatzl@5773 44 nonstatic_field(HeapRegionSeq, _committed_length, uint) \
tonyp@3168 45 \
tonyp@3168 46 nonstatic_field(G1CollectedHeap, _hrs, HeapRegionSeq) \
tonyp@3168 47 nonstatic_field(G1CollectedHeap, _g1_committed, MemRegion) \
tonyp@3168 48 nonstatic_field(G1CollectedHeap, _summary_bytes_used, size_t) \
tonyp@3180 49 nonstatic_field(G1CollectedHeap, _g1mm, G1MonitoringSupport*) \
tonyp@3457 50 nonstatic_field(G1CollectedHeap, _old_set, HeapRegionSetBase) \
tonyp@3457 51 nonstatic_field(G1CollectedHeap, _humongous_set, HeapRegionSetBase) \
tonyp@3180 52 \
tonyp@3180 53 nonstatic_field(G1MonitoringSupport, _eden_committed, size_t) \
tonyp@3180 54 nonstatic_field(G1MonitoringSupport, _eden_used, size_t) \
tonyp@3180 55 nonstatic_field(G1MonitoringSupport, _survivor_committed, size_t) \
tonyp@3180 56 nonstatic_field(G1MonitoringSupport, _survivor_used, size_t) \
tonyp@3180 57 nonstatic_field(G1MonitoringSupport, _old_committed, size_t) \
tonyp@3180 58 nonstatic_field(G1MonitoringSupport, _old_used, size_t) \
tonyp@3457 59 \
brutisso@6385 60 nonstatic_field(HeapRegionSetBase, _count, HeapRegionSetCount) \
brutisso@6385 61 \
brutisso@6385 62 nonstatic_field(HeapRegionSetCount, _length, uint) \
brutisso@6385 63 nonstatic_field(HeapRegionSetCount, _capacity, size_t) \
tonyp@3168 64
tonyp@3168 65
tonyp@3168 66 #define VM_TYPES_G1(declare_type, declare_toplevel_type) \
tonyp@3168 67 \
tschatzl@5773 68 declare_toplevel_type(G1HeapRegionTable) \
tschatzl@5773 69 \
tonyp@3168 70 declare_type(G1CollectedHeap, SharedHeap) \
tonyp@3168 71 \
tonyp@3168 72 declare_type(HeapRegion, ContiguousSpace) \
tonyp@3168 73 declare_toplevel_type(HeapRegionSeq) \
tonyp@3457 74 declare_toplevel_type(HeapRegionSetBase) \
brutisso@6385 75 declare_toplevel_type(HeapRegionSetCount) \
tonyp@3180 76 declare_toplevel_type(G1MonitoringSupport) \
tonyp@3168 77 \
tonyp@3168 78 declare_toplevel_type(G1CollectedHeap*) \
tonyp@3168 79 declare_toplevel_type(HeapRegion*) \
tonyp@3180 80 declare_toplevel_type(G1MonitoringSupport*) \
tonyp@3180 81
tonyp@3168 82
tonyp@3168 83 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP

mercurial