vmStructs_g1.hpp revision 8413:92457dfb91bd
11541Srgrimes/* 21541Srgrimes * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 31541Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 41541Srgrimes * 551138Salfred * This code is free software; you can redistribute it and/or modify it 6219305Strasz * under the terms of the GNU General Public License version 2 only, as 71541Srgrimes * published by the Free Software Foundation. 81541Srgrimes * 91541Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT 1064002Speter * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 111541Srgrimes * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 121541Srgrimes * version 2 for more details (a copy is included in the LICENSE file that 131541Srgrimes * accompanied this code). 141541Srgrimes * 151541Srgrimes * You should have received a copy of the GNU General Public License version 161541Srgrimes * 2 along with this work; if not, write to the Free Software Foundation, 171541Srgrimes * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 181541Srgrimes * 191541Srgrimes * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 201541Srgrimes * or visit www.oracle.com if you need additional information or have any 211541Srgrimes * questions. 221541Srgrimes * 231541Srgrimes */ 241541Srgrimes 251541Srgrimes#ifndef SHARE_VM_GC_G1_VMSTRUCTS_G1_HPP 261541Srgrimes#define SHARE_VM_GC_G1_VMSTRUCTS_G1_HPP 27171210Speter 281541Srgrimes#include "gc/g1/g1CollectedHeap.hpp" 291541Srgrimes#include "gc/g1/heapRegion.hpp" 301541Srgrimes#include "gc/g1/heapRegionManager.hpp" 311541Srgrimes 321541Srgrimes#define VM_STRUCTS_G1(nonstatic_field, static_field) \ 331541Srgrimes \ 341541Srgrimes static_field(HeapRegion, GrainBytes, size_t) \ 351541Srgrimes static_field(HeapRegion, LogOfHRGrainBytes, int) \ 361541Srgrimes \ 371541Srgrimes nonstatic_field(G1OffsetTableContigSpace, _top, HeapWord*) \ 381541Srgrimes \ 391541Srgrimes nonstatic_field(G1HeapRegionTable, _base, address) \ 401541Srgrimes nonstatic_field(G1HeapRegionTable, _length, size_t) \ 411541Srgrimes nonstatic_field(G1HeapRegionTable, _biased_base, address) \ 421541Srgrimes nonstatic_field(G1HeapRegionTable, _bias, size_t) \ 431541Srgrimes nonstatic_field(G1HeapRegionTable, _shift_by, uint) \ 441541Srgrimes \ 451541Srgrimes nonstatic_field(HeapRegionManager, _regions, G1HeapRegionTable) \ 461541Srgrimes nonstatic_field(HeapRegionManager, _num_committed, uint) \ 471541Srgrimes \ 481541Srgrimes nonstatic_field(G1Allocator, _summary_bytes_used, size_t) \ 491541Srgrimes \ 501541Srgrimes nonstatic_field(G1CollectedHeap, _hrm, HeapRegionManager) \ 511541Srgrimes nonstatic_field(G1CollectedHeap, _g1mm, G1MonitoringSupport*) \ 521541Srgrimes nonstatic_field(G1CollectedHeap, _old_set, HeapRegionSetBase) \ 531541Srgrimes nonstatic_field(G1CollectedHeap, _humongous_set, HeapRegionSetBase) \ 541541Srgrimes nonstatic_field(G1CollectedHeap, _allocator, G1Allocator*) \ 5552150Smarcel \ 561541Srgrimes nonstatic_field(G1MonitoringSupport, _eden_committed, size_t) \ 5752150Smarcel nonstatic_field(G1MonitoringSupport, _eden_used, size_t) \ 581541Srgrimes nonstatic_field(G1MonitoringSupport, _survivor_committed, size_t) \ 591541Srgrimes nonstatic_field(G1MonitoringSupport, _survivor_used, size_t) \ 601541Srgrimes nonstatic_field(G1MonitoringSupport, _old_committed, size_t) \ 6152150Smarcel nonstatic_field(G1MonitoringSupport, _old_used, size_t) \ 621541Srgrimes \ 631541Srgrimes nonstatic_field(HeapRegionSetBase, _count, HeapRegionSetCount) \ 641541Srgrimes \ 651541Srgrimes nonstatic_field(HeapRegionSetCount, _length, uint) \ 661541Srgrimes nonstatic_field(HeapRegionSetCount, _capacity, size_t) \ 671541Srgrimes 681541Srgrimes 691541Srgrimes#define VM_TYPES_G1(declare_type, declare_toplevel_type) \ 701541Srgrimes \ 711541Srgrimes declare_toplevel_type(G1HeapRegionTable) \ 721541Srgrimes \ 731541Srgrimes declare_type(G1CollectedHeap, CollectedHeap) \ 741541Srgrimes \ 751541Srgrimes declare_type(G1OffsetTableContigSpace, CompactibleSpace) \ 761541Srgrimes declare_type(HeapRegion, G1OffsetTableContigSpace) \ 771541Srgrimes declare_toplevel_type(HeapRegionManager) \ 781541Srgrimes declare_toplevel_type(HeapRegionSetBase) \ 791541Srgrimes declare_toplevel_type(HeapRegionSetCount) \ 801541Srgrimes declare_toplevel_type(G1MonitoringSupport) \ 811541Srgrimes declare_toplevel_type(G1Allocator) \ 821541Srgrimes \ 831541Srgrimes declare_toplevel_type(G1CollectedHeap*) \ 841541Srgrimes declare_toplevel_type(HeapRegion*) \ 851541Srgrimes declare_toplevel_type(G1MonitoringSupport*) \ 861541Srgrimes declare_toplevel_type(G1Allocator*) \ 871541Srgrimes 881541Srgrimes 891541Srgrimes#endif // SHARE_VM_GC_G1_VMSTRUCTS_G1_HPP 901541Srgrimes