tonyp@3168: /* mikael@6198: * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. tonyp@3168: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. tonyp@3168: * tonyp@3168: * This code is free software; you can redistribute it and/or modify it tonyp@3168: * under the terms of the GNU General Public License version 2 only, as tonyp@3168: * published by the Free Software Foundation. tonyp@3168: * tonyp@3168: * This code is distributed in the hope that it will be useful, but WITHOUT tonyp@3168: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or tonyp@3168: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License tonyp@3168: * version 2 for more details (a copy is included in the LICENSE file that tonyp@3168: * accompanied this code). tonyp@3168: * tonyp@3168: * You should have received a copy of the GNU General Public License version tonyp@3168: * 2 along with this work; if not, write to the Free Software Foundation, tonyp@3168: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. tonyp@3168: * tonyp@3168: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA tonyp@3168: * or visit www.oracle.com if you need additional information or have any tonyp@3168: * questions. tonyp@3168: * tonyp@3168: */ tonyp@3168: tonyp@3168: #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP tonyp@3168: #define SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP tonyp@3168: tonyp@3168: #include "gc_implementation/g1/heapRegion.hpp" tschatzl@7091: #include "gc_implementation/g1/heapRegionManager.inline.hpp" tonyp@3168: #include "gc_implementation/g1/g1CollectedHeap.inline.hpp" tonyp@3168: tonyp@3168: #define VM_STRUCTS_G1(nonstatic_field, static_field) \ tonyp@3168: \ twisti@5726: static_field(HeapRegion, GrainBytes, size_t) \ twisti@5726: static_field(HeapRegion, LogOfHRGrainBytes, int) \ tonyp@3168: \ mgerdin@6990: nonstatic_field(G1OffsetTableContigSpace, _top, HeapWord*) \ mgerdin@6990: \ tschatzl@5773: nonstatic_field(G1HeapRegionTable, _base, address) \ tschatzl@5773: nonstatic_field(G1HeapRegionTable, _length, size_t) \ tschatzl@5773: nonstatic_field(G1HeapRegionTable, _biased_base, address) \ tschatzl@5773: nonstatic_field(G1HeapRegionTable, _bias, size_t) \ tschatzl@5773: nonstatic_field(G1HeapRegionTable, _shift_by, uint) \ tschatzl@5773: \ tschatzl@7091: nonstatic_field(HeapRegionManager, _regions, G1HeapRegionTable) \ tschatzl@7091: nonstatic_field(HeapRegionManager, _num_committed, uint) \ tonyp@3168: \ sjohanss@7118: nonstatic_field(G1Allocator, _summary_bytes_used, size_t) \ sjohanss@7118: \ tschatzl@7091: nonstatic_field(G1CollectedHeap, _hrm, HeapRegionManager) \ tonyp@3180: nonstatic_field(G1CollectedHeap, _g1mm, G1MonitoringSupport*) \ tonyp@3457: nonstatic_field(G1CollectedHeap, _old_set, HeapRegionSetBase) \ tonyp@3457: nonstatic_field(G1CollectedHeap, _humongous_set, HeapRegionSetBase) \ sjohanss@7118: nonstatic_field(G1CollectedHeap, _allocator, G1Allocator*) \ tonyp@3180: \ tonyp@3180: nonstatic_field(G1MonitoringSupport, _eden_committed, size_t) \ tonyp@3180: nonstatic_field(G1MonitoringSupport, _eden_used, size_t) \ tonyp@3180: nonstatic_field(G1MonitoringSupport, _survivor_committed, size_t) \ tonyp@3180: nonstatic_field(G1MonitoringSupport, _survivor_used, size_t) \ tonyp@3180: nonstatic_field(G1MonitoringSupport, _old_committed, size_t) \ tonyp@3180: nonstatic_field(G1MonitoringSupport, _old_used, size_t) \ tonyp@3457: \ brutisso@6385: nonstatic_field(HeapRegionSetBase, _count, HeapRegionSetCount) \ brutisso@6385: \ brutisso@6385: nonstatic_field(HeapRegionSetCount, _length, uint) \ brutisso@6385: nonstatic_field(HeapRegionSetCount, _capacity, size_t) \ tonyp@3168: tonyp@3168: tonyp@3168: #define VM_TYPES_G1(declare_type, declare_toplevel_type) \ tonyp@3168: \ tschatzl@5773: declare_toplevel_type(G1HeapRegionTable) \ tschatzl@5773: \ tonyp@3168: declare_type(G1CollectedHeap, SharedHeap) \ tonyp@3168: \ mgerdin@6990: declare_type(G1OffsetTableContigSpace, CompactibleSpace) \ mgerdin@6990: declare_type(HeapRegion, G1OffsetTableContigSpace) \ sjohanss@7118: declare_toplevel_type(HeapRegionManager) \ tonyp@3457: declare_toplevel_type(HeapRegionSetBase) \ brutisso@6385: declare_toplevel_type(HeapRegionSetCount) \ tonyp@3180: declare_toplevel_type(G1MonitoringSupport) \ sjohanss@7118: declare_toplevel_type(G1Allocator) \ tonyp@3168: \ tonyp@3168: declare_toplevel_type(G1CollectedHeap*) \ tonyp@3168: declare_toplevel_type(HeapRegion*) \ tonyp@3180: declare_toplevel_type(G1MonitoringSupport*) \ sjohanss@7118: declare_toplevel_type(G1Allocator*) \ tonyp@3180: tonyp@3168: tonyp@3168: #endif // SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP