annotate src/share/vm/gc_implementation/g1/vmStructs_g1.hpp @ 2981:2ace1c4ee8da

6888336: G1: avoid explicitly marking and pushing objects in survivor spaces Summary: This change simplifies the interaction between GC and concurrent marking. By disabling survivor spaces during the initial-mark pause we don't need to propagate marks of objects we copy during each GC (since we never need to copy an explicitly marked object). Reviewed-by: johnc, brutisso
author tonyp
date Tue, 10 Jan 2012 18:58:13 -0500
parents 81aa07130d30
children 0b3d1ec6eaee
rev   line source
tonyp@2733 1 /*
tonyp@2733 2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
tonyp@2733 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
tonyp@2733 4 *
tonyp@2733 5 * This code is free software; you can redistribute it and/or modify it
tonyp@2733 6 * under the terms of the GNU General Public License version 2 only, as
tonyp@2733 7 * published by the Free Software Foundation.
tonyp@2733 8 *
tonyp@2733 9 * This code is distributed in the hope that it will be useful, but WITHOUT
tonyp@2733 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
tonyp@2733 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
tonyp@2733 12 * version 2 for more details (a copy is included in the LICENSE file that
tonyp@2733 13 * accompanied this code).
tonyp@2733 14 *
tonyp@2733 15 * You should have received a copy of the GNU General Public License version
tonyp@2733 16 * 2 along with this work; if not, write to the Free Software Foundation,
tonyp@2733 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
tonyp@2733 18 *
tonyp@2733 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
tonyp@2733 20 * or visit www.oracle.com if you need additional information or have any
tonyp@2733 21 * questions.
tonyp@2733 22 *
tonyp@2733 23 */
tonyp@2733 24
tonyp@2733 25 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP
tonyp@2733 26 #define SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP
tonyp@2733 27
tonyp@2733 28 #include "gc_implementation/g1/heapRegion.hpp"
tonyp@2733 29 #include "gc_implementation/g1/heapRegionSeq.inline.hpp"
tonyp@2733 30 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
tonyp@2733 31
tonyp@2733 32 #define VM_STRUCTS_G1(nonstatic_field, static_field) \
tonyp@2733 33 \
johnc@2747 34 static_field(HeapRegion, GrainBytes, size_t) \
tonyp@2733 35 \
tonyp@2733 36 nonstatic_field(HeapRegionSeq, _regions, HeapRegion**) \
tonyp@2733 37 nonstatic_field(HeapRegionSeq, _length, size_t) \
tonyp@2733 38 \
tonyp@2733 39 nonstatic_field(G1CollectedHeap, _hrs, HeapRegionSeq) \
tonyp@2733 40 nonstatic_field(G1CollectedHeap, _g1_committed, MemRegion) \
tonyp@2733 41 nonstatic_field(G1CollectedHeap, _summary_bytes_used, size_t) \
tonyp@2745 42 nonstatic_field(G1CollectedHeap, _g1mm, G1MonitoringSupport*) \
tonyp@2745 43 \
tonyp@2745 44 nonstatic_field(G1MonitoringSupport, _eden_committed, size_t) \
tonyp@2745 45 nonstatic_field(G1MonitoringSupport, _eden_used, size_t) \
tonyp@2745 46 nonstatic_field(G1MonitoringSupport, _survivor_committed, size_t) \
tonyp@2745 47 nonstatic_field(G1MonitoringSupport, _survivor_used, size_t) \
tonyp@2745 48 nonstatic_field(G1MonitoringSupport, _old_committed, size_t) \
tonyp@2745 49 nonstatic_field(G1MonitoringSupport, _old_used, size_t) \
tonyp@2733 50
tonyp@2733 51
tonyp@2733 52 #define VM_TYPES_G1(declare_type, declare_toplevel_type) \
tonyp@2733 53 \
tonyp@2733 54 declare_type(G1CollectedHeap, SharedHeap) \
tonyp@2733 55 \
tonyp@2733 56 declare_type(HeapRegion, ContiguousSpace) \
tonyp@2733 57 declare_toplevel_type(HeapRegionSeq) \
tonyp@2745 58 declare_toplevel_type(G1MonitoringSupport) \
tonyp@2733 59 \
tonyp@2733 60 declare_toplevel_type(G1CollectedHeap*) \
tonyp@2733 61 declare_toplevel_type(HeapRegion*) \
tonyp@2745 62 declare_toplevel_type(G1MonitoringSupport*) \
tonyp@2745 63
tonyp@2733 64
tonyp@2733 65 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_VMSTRUCTS_G1_HPP