author | stefank |
Fri, 04 May 2018 11:41:35 +0200 | |
changeset 49982 | 9042ffe5b7fe |
parent 49754 | ee93c1087584 |
child 50523 | 7b7c75d87f9b |
child 56576 | 92316ff16d5c |
permissions | -rw-r--r-- |
49730
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
1 |
/* |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
2 |
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
4 |
* |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
8 |
* |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
13 |
* accompanied this code). |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
14 |
* |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
18 |
* |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
21 |
* questions. |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
22 |
* |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
23 |
*/ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
24 |
|
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
25 |
#ifndef SHARE_GC_SHARED_VMSTRUCTS_GC_HPP |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
26 |
#define SHARE_GC_SHARED_VMSTRUCTS_GC_HPP |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
27 |
|
49982 | 28 |
#include "gc/shared/ageTable.hpp" |
49730
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
29 |
#include "gc/shared/cardGeneration.hpp" |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
30 |
#include "gc/shared/cardTableRS.hpp" |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
31 |
#include "gc/shared/collectedHeap.hpp" |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
32 |
#include "gc/shared/genCollectedHeap.hpp" |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
33 |
#include "gc/shared/generation.hpp" |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
34 |
#include "gc/shared/generationSpec.hpp" |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
35 |
#include "gc/shared/oopStorage.hpp" |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
36 |
#include "gc/shared/space.hpp" |
49982 | 37 |
#if INCLUDE_CMSGC |
38 |
#include "gc/cms/vmStructs_cms.hpp" |
|
39 |
#endif |
|
40 |
#if INCLUDE_G1GC |
|
41 |
#include "gc/g1/vmStructs_g1.hpp" |
|
42 |
#endif |
|
43 |
#if INCLUDE_PARALLELGC |
|
44 |
#include "gc/parallel/vmStructs_parallelgc.hpp" |
|
45 |
#endif |
|
46 |
#if INCLUDE_SERIALGC |
|
49730
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
47 |
#include "gc/serial/defNewGeneration.hpp" |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
48 |
#include "gc/serial/vmStructs_serial.hpp" |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
49 |
#endif |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
50 |
|
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
51 |
#define VM_STRUCTS_GC(nonstatic_field, \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
52 |
volatile_nonstatic_field, \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
53 |
static_field, \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
54 |
unchecked_nonstatic_field) \ |
49982 | 55 |
CMSGC_ONLY(VM_STRUCTS_CMSGC(nonstatic_field, \ |
56 |
volatile_nonstatic_field, \ |
|
57 |
static_field)) \ |
|
58 |
G1GC_ONLY(VM_STRUCTS_G1GC(nonstatic_field, \ |
|
59 |
volatile_nonstatic_field, \ |
|
60 |
static_field)) \ |
|
61 |
PARALLELGC_ONLY(VM_STRUCTS_PARALLELGC(nonstatic_field, \ |
|
62 |
volatile_nonstatic_field, \ |
|
63 |
static_field)) \ |
|
64 |
SERIALGC_ONLY(VM_STRUCTS_SERIALGC(nonstatic_field, \ |
|
65 |
volatile_nonstatic_field, \ |
|
66 |
static_field)) \ |
|
49730
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
67 |
/**********************************************************************************/ \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
68 |
/* Generation and Space hierarchies */ \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
69 |
/**********************************************************************************/ \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
70 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
71 |
unchecked_nonstatic_field(AgeTable, sizes, sizeof(AgeTable::sizes)) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
72 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
73 |
nonstatic_field(BarrierSet, _fake_rtti, BarrierSet::FakeRtti) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
74 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
75 |
nonstatic_field(BarrierSet::FakeRtti, _concrete_tag, BarrierSet::Name) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
76 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
77 |
nonstatic_field(BlockOffsetTable, _bottom, HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
78 |
nonstatic_field(BlockOffsetTable, _end, HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
79 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
80 |
nonstatic_field(BlockOffsetSharedArray, _reserved, MemRegion) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
81 |
nonstatic_field(BlockOffsetSharedArray, _end, HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
82 |
nonstatic_field(BlockOffsetSharedArray, _vs, VirtualSpace) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
83 |
nonstatic_field(BlockOffsetSharedArray, _offset_array, u_char*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
84 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
85 |
nonstatic_field(BlockOffsetArray, _array, BlockOffsetSharedArray*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
86 |
nonstatic_field(BlockOffsetArray, _sp, Space*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
87 |
nonstatic_field(BlockOffsetArrayContigSpace, _next_offset_threshold, HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
88 |
nonstatic_field(BlockOffsetArrayContigSpace, _next_offset_index, size_t) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
89 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
90 |
nonstatic_field(BlockOffsetArrayNonContigSpace, _unallocated_block, HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
91 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
92 |
nonstatic_field(CardGeneration, _rs, CardTableRS*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
93 |
nonstatic_field(CardGeneration, _bts, BlockOffsetSharedArray*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
94 |
nonstatic_field(CardGeneration, _shrink_factor, size_t) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
95 |
nonstatic_field(CardGeneration, _capacity_at_prologue, size_t) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
96 |
nonstatic_field(CardGeneration, _used_at_prologue, size_t) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
97 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
98 |
nonstatic_field(CardTable, _whole_heap, const MemRegion) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
99 |
nonstatic_field(CardTable, _guard_index, const size_t) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
100 |
nonstatic_field(CardTable, _last_valid_index, const size_t) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
101 |
nonstatic_field(CardTable, _page_size, const size_t) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
102 |
nonstatic_field(CardTable, _byte_map_size, const size_t) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
103 |
nonstatic_field(CardTable, _byte_map, jbyte*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
104 |
nonstatic_field(CardTable, _cur_covered_regions, int) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
105 |
nonstatic_field(CardTable, _covered, MemRegion*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
106 |
nonstatic_field(CardTable, _committed, MemRegion*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
107 |
nonstatic_field(CardTable, _guard_region, MemRegion) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
108 |
nonstatic_field(CardTable, _byte_map_base, jbyte*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
109 |
nonstatic_field(CardTableBarrierSet, _defer_initial_card_mark, bool) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
110 |
nonstatic_field(CardTableBarrierSet, _card_table, CardTable*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
111 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
112 |
nonstatic_field(CollectedHeap, _reserved, MemRegion) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
113 |
nonstatic_field(CollectedHeap, _is_gc_active, bool) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
114 |
nonstatic_field(CollectedHeap, _total_collections, unsigned int) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
115 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
116 |
nonstatic_field(CompactibleSpace, _compaction_top, HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
117 |
nonstatic_field(CompactibleSpace, _first_dead, HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
118 |
nonstatic_field(CompactibleSpace, _end_of_live, HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
119 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
120 |
nonstatic_field(ContiguousSpace, _top, HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
121 |
nonstatic_field(ContiguousSpace, _concurrent_iteration_safe_limit, HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
122 |
nonstatic_field(ContiguousSpace, _saved_mark_word, HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
123 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
124 |
nonstatic_field(Generation, _reserved, MemRegion) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
125 |
nonstatic_field(Generation, _virtual_space, VirtualSpace) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
126 |
nonstatic_field(Generation, _stat_record, Generation::StatRecord) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
127 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
128 |
nonstatic_field(Generation::StatRecord, invocations, int) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
129 |
nonstatic_field(Generation::StatRecord, accumulated_time, elapsedTimer) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
130 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
131 |
nonstatic_field(GenerationSpec, _name, Generation::Name) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
132 |
nonstatic_field(GenerationSpec, _init_size, size_t) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
133 |
nonstatic_field(GenerationSpec, _max_size, size_t) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
134 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
135 |
nonstatic_field(GenCollectedHeap, _young_gen, Generation*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
136 |
nonstatic_field(GenCollectedHeap, _old_gen, Generation*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
137 |
nonstatic_field(GenCollectedHeap, _young_gen_spec, GenerationSpec*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
138 |
nonstatic_field(GenCollectedHeap, _old_gen_spec, GenerationSpec*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
139 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
140 |
nonstatic_field(HeapWord, i, char*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
141 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
142 |
nonstatic_field(MemRegion, _start, HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
143 |
nonstatic_field(MemRegion, _word_size, size_t) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
144 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
145 |
nonstatic_field(OffsetTableContigSpace, _offsets, BlockOffsetArray) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
146 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
147 |
nonstatic_field(Space, _bottom, HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
148 |
nonstatic_field(Space, _end, HeapWord*) |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
149 |
|
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
150 |
#define VM_TYPES_GC(declare_type, \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
151 |
declare_toplevel_type, \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
152 |
declare_integer_type) \ |
49982 | 153 |
CMSGC_ONLY(VM_TYPES_CMSGC(declare_type, \ |
154 |
declare_toplevel_type, \ |
|
155 |
declare_integer_type)) \ |
|
156 |
G1GC_ONLY(VM_TYPES_G1GC(declare_type, \ |
|
157 |
declare_toplevel_type, \ |
|
158 |
declare_integer_type)) \ |
|
159 |
PARALLELGC_ONLY(VM_TYPES_PARALLELGC(declare_type, \ |
|
160 |
declare_toplevel_type, \ |
|
161 |
declare_integer_type)) \ |
|
162 |
SERIALGC_ONLY(VM_TYPES_SERIALGC(declare_type, \ |
|
163 |
declare_toplevel_type, \ |
|
164 |
declare_integer_type)) \ |
|
49730
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
165 |
/******************************************/ \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
166 |
/* Generation and space hierarchies */ \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
167 |
/* (needed for run-time type information) */ \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
168 |
/******************************************/ \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
169 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
170 |
declare_toplevel_type(CollectedHeap) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
171 |
declare_type(GenCollectedHeap, CollectedHeap) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
172 |
declare_toplevel_type(Generation) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
173 |
declare_type(CardGeneration, Generation) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
174 |
declare_toplevel_type(Space) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
175 |
declare_type(CompactibleSpace, Space) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
176 |
declare_type(ContiguousSpace, CompactibleSpace) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
177 |
declare_type(OffsetTableContigSpace, ContiguousSpace) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
178 |
declare_toplevel_type(BarrierSet) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
179 |
declare_type(ModRefBarrierSet, BarrierSet) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
180 |
declare_type(CardTableBarrierSet, ModRefBarrierSet) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
181 |
declare_toplevel_type(CardTable) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
182 |
declare_type(CardTableRS, CardTable) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
183 |
declare_toplevel_type(BarrierSet::Name) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
184 |
declare_toplevel_type(BlockOffsetSharedArray) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
185 |
declare_toplevel_type(BlockOffsetTable) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
186 |
declare_type(BlockOffsetArray, BlockOffsetTable) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
187 |
declare_type(BlockOffsetArrayContigSpace, BlockOffsetArray) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
188 |
declare_type(BlockOffsetArrayNonContigSpace, BlockOffsetArray) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
189 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
190 |
/* Miscellaneous other GC types */ \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
191 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
192 |
declare_toplevel_type(AgeTable) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
193 |
declare_toplevel_type(Generation::StatRecord) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
194 |
declare_toplevel_type(GenerationSpec) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
195 |
declare_toplevel_type(HeapWord) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
196 |
declare_toplevel_type(MemRegion) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
197 |
declare_toplevel_type(ThreadLocalAllocBuffer) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
198 |
declare_toplevel_type(VirtualSpace) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
199 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
200 |
/* Pointers to Garbage Collection types */ \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
201 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
202 |
declare_toplevel_type(BarrierSet*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
203 |
declare_toplevel_type(BlockOffsetSharedArray*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
204 |
declare_toplevel_type(CardTable*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
205 |
declare_toplevel_type(CardTable*const) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
206 |
declare_toplevel_type(CardTableRS*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
207 |
declare_toplevel_type(CardTableBarrierSet*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
208 |
declare_toplevel_type(CardTableBarrierSet**) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
209 |
declare_toplevel_type(CollectedHeap*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
210 |
declare_toplevel_type(ContiguousSpace*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
211 |
declare_toplevel_type(DefNewGeneration*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
212 |
declare_toplevel_type(GenCollectedHeap*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
213 |
declare_toplevel_type(Generation*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
214 |
declare_toplevel_type(GenerationSpec**) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
215 |
declare_toplevel_type(HeapWord*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
216 |
declare_toplevel_type(HeapWord* volatile) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
217 |
declare_toplevel_type(MemRegion*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
218 |
declare_toplevel_type(OffsetTableContigSpace*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
219 |
declare_toplevel_type(Space*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
220 |
declare_toplevel_type(ThreadLocalAllocBuffer*) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
221 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
222 |
declare_toplevel_type(BarrierSet::FakeRtti) |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
223 |
|
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
224 |
#define VM_INT_CONSTANTS_GC(declare_constant, \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
225 |
declare_constant_with_value) \ |
49982 | 226 |
CMSGC_ONLY(VM_INT_CONSTANTS_CMSGC(declare_constant, \ |
227 |
declare_constant_with_value)) \ |
|
228 |
G1GC_ONLY(VM_INT_CONSTANTS_G1GC(declare_constant, \ |
|
229 |
declare_constant_with_value)) \ |
|
230 |
PARALLELGC_ONLY(VM_INT_CONSTANTS_PARALLELGC(declare_constant, \ |
|
231 |
declare_constant_with_value)) \ |
|
232 |
SERIALGC_ONLY(VM_INT_CONSTANTS_SERIALGC(declare_constant, \ |
|
233 |
declare_constant_with_value)) \ |
|
49730
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
234 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
235 |
/********************************************/ \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
236 |
/* Generation and Space Hierarchy Constants */ \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
237 |
/********************************************/ \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
238 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
239 |
declare_constant(AgeTable::table_size) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
240 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
241 |
declare_constant(BarrierSet::ModRef) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
242 |
declare_constant(BarrierSet::CardTableBarrierSet) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
243 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
244 |
declare_constant(BOTConstants::LogN) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
245 |
declare_constant(BOTConstants::LogN_words) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
246 |
declare_constant(BOTConstants::N_bytes) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
247 |
declare_constant(BOTConstants::N_words) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
248 |
declare_constant(BOTConstants::LogBase) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
249 |
declare_constant(BOTConstants::Base) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
250 |
declare_constant(BOTConstants::N_powers) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
251 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
252 |
declare_constant(CardTable::clean_card) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
253 |
declare_constant(CardTable::last_card) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
254 |
declare_constant(CardTable::dirty_card) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
255 |
declare_constant(CardTable::Precise) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
256 |
declare_constant(CardTable::ObjHeadPreciseArray) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
257 |
declare_constant(CardTable::card_shift) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
258 |
declare_constant(CardTable::card_size) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
259 |
declare_constant(CardTable::card_size_in_words) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
260 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
261 |
declare_constant(CardTableRS::youngergen_card) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
262 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
263 |
declare_constant(CollectedHeap::Serial) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
264 |
declare_constant(CollectedHeap::Parallel) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
265 |
declare_constant(CollectedHeap::CMS) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
266 |
declare_constant(CollectedHeap::G1) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
267 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
268 |
/* constants from Generation::Name enum */ \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
269 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
270 |
declare_constant(Generation::DefNew) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
271 |
declare_constant(Generation::MarkSweepCompact) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
272 |
declare_constant(Generation::Other) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
273 |
\ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
274 |
declare_constant(Generation::LogOfGenGrain) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
275 |
declare_constant(Generation::GenGrain) \ |
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
276 |
|
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
277 |
|
c2761ef9fd95
8200759: Move GC entries in vmStructs.cpp to GC specific files
stefank
parents:
diff
changeset
|
278 |
#endif // SHARE_GC_SHARED_VMSTRUCTS_GC_HPP |