2808N/A/*
3113N/A * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
2808N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2808N/A *
2808N/A * This code is free software; you can redistribute it and/or modify it
2808N/A * under the terms of the GNU General Public License version 2 only, as
2808N/A * published by the Free Software Foundation.
2808N/A *
2808N/A * This code is distributed in the hope that it will be useful, but WITHOUT
2808N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2808N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2808N/A * version 2 for more details (a copy is included in the LICENSE file that
2808N/A * accompanied this code).
2808N/A *
2808N/A * You should have received a copy of the GNU General Public License version
2808N/A * 2 along with this work; if not, write to the Free Software Foundation,
2808N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2808N/A *
2808N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2808N/A * or visit www.oracle.com if you need additional information or have any
2808N/A * questions.
2808N/A *
2808N/A */
2808N/A
2808N/A#ifndef SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP
2808N/A#define SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP
2808N/A
2808N/A#include "gc_implementation/g1/heapRegion.hpp"
2808N/A#include "gc_implementation/g1/heapRegionSeq.inline.hpp"
2808N/A#include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
2808N/A
2808N/A#define VM_STRUCTS_G1(nonstatic_field, static_field) \
2808N/A \
2822N/A static_field(HeapRegion, GrainBytes, size_t) \
2808N/A \
2808N/A nonstatic_field(HeapRegionSeq, _regions, HeapRegion**) \
3681N/A nonstatic_field(HeapRegionSeq, _length, uint) \
2808N/A \
2808N/A nonstatic_field(G1CollectedHeap, _hrs, HeapRegionSeq) \
2808N/A nonstatic_field(G1CollectedHeap, _g1_committed, MemRegion) \
2808N/A nonstatic_field(G1CollectedHeap, _summary_bytes_used, size_t) \
2820N/A nonstatic_field(G1CollectedHeap, _g1mm, G1MonitoringSupport*) \
3113N/A nonstatic_field(G1CollectedHeap, _old_set, HeapRegionSetBase) \
3113N/A nonstatic_field(G1CollectedHeap, _humongous_set, HeapRegionSetBase) \
2820N/A \
2820N/A nonstatic_field(G1MonitoringSupport, _eden_committed, size_t) \
2820N/A nonstatic_field(G1MonitoringSupport, _eden_used, size_t) \
2820N/A nonstatic_field(G1MonitoringSupport, _survivor_committed, size_t) \
2820N/A nonstatic_field(G1MonitoringSupport, _survivor_used, size_t) \
2820N/A nonstatic_field(G1MonitoringSupport, _old_committed, size_t) \
2820N/A nonstatic_field(G1MonitoringSupport, _old_used, size_t) \
3113N/A \
3681N/A nonstatic_field(HeapRegionSetBase, _length, uint) \
3681N/A nonstatic_field(HeapRegionSetBase, _region_num, uint) \
3113N/A nonstatic_field(HeapRegionSetBase, _total_used_bytes, size_t) \
2808N/A
2808N/A
2808N/A#define VM_TYPES_G1(declare_type, declare_toplevel_type) \
2808N/A \
2808N/A declare_type(G1CollectedHeap, SharedHeap) \
2808N/A \
2808N/A declare_type(HeapRegion, ContiguousSpace) \
2808N/A declare_toplevel_type(HeapRegionSeq) \
3113N/A declare_toplevel_type(HeapRegionSetBase) \
2820N/A declare_toplevel_type(G1MonitoringSupport) \
2808N/A \
2808N/A declare_toplevel_type(G1CollectedHeap*) \
2808N/A declare_toplevel_type(HeapRegion*) \
2820N/A declare_toplevel_type(G1MonitoringSupport*) \
2820N/A
2808N/A
2808N/A#endif // SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP