comparison src/hotspot/share/gc/shared/vmStructs_gc.hpp @ 52321:31b159f30fb2

8180193: Make marking bitmap code available to other GCs Reviewed-by: shade, stefank
author rkennke
date Wed, 29 Aug 2018 20:15:09 +0200
parents 7b7c75d87f9b
children 9c18c9d839d3
comparison
equal deleted inserted replaced
3:06f3dd042fdc 4:df3ce31cc429
47 #include "gc/parallel/vmStructs_parallelgc.hpp" 47 #include "gc/parallel/vmStructs_parallelgc.hpp"
48 #endif 48 #endif
49 #if INCLUDE_SERIALGC 49 #if INCLUDE_SERIALGC
50 #include "gc/serial/defNewGeneration.hpp" 50 #include "gc/serial/defNewGeneration.hpp"
51 #include "gc/serial/vmStructs_serial.hpp" 51 #include "gc/serial/vmStructs_serial.hpp"
52 #endif
53 #if INCLUDE_ZGC
54 #include "gc/z/vmStructs_z.hpp"
52 #endif 55 #endif
53 56
54 #define VM_STRUCTS_GC(nonstatic_field, \ 57 #define VM_STRUCTS_GC(nonstatic_field, \
55 volatile_nonstatic_field, \ 58 volatile_nonstatic_field, \
56 static_field, \ 59 static_field, \
68 volatile_nonstatic_field, \ 71 volatile_nonstatic_field, \
69 static_field)) \ 72 static_field)) \
70 SERIALGC_ONLY(VM_STRUCTS_SERIALGC(nonstatic_field, \ 73 SERIALGC_ONLY(VM_STRUCTS_SERIALGC(nonstatic_field, \
71 volatile_nonstatic_field, \ 74 volatile_nonstatic_field, \
72 static_field)) \ 75 static_field)) \
76 ZGC_ONLY(VM_STRUCTS_ZGC(nonstatic_field, \
77 volatile_nonstatic_field, \
78 static_field)) \
79 \
73 /**********************************************************************************/ \ 80 /**********************************************************************************/ \
74 /* Generation and Space hierarchies */ \ 81 /* Generation and Space hierarchies */ \
75 /**********************************************************************************/ \ 82 /**********************************************************************************/ \
76 \ 83 \
77 unchecked_nonstatic_field(AgeTable, sizes, sizeof(AgeTable::sizes)) \ 84 unchecked_nonstatic_field(AgeTable, sizes, sizeof(AgeTable::sizes)) \
169 declare_toplevel_type, \ 176 declare_toplevel_type, \
170 declare_integer_type)) \ 177 declare_integer_type)) \
171 SERIALGC_ONLY(VM_TYPES_SERIALGC(declare_type, \ 178 SERIALGC_ONLY(VM_TYPES_SERIALGC(declare_type, \
172 declare_toplevel_type, \ 179 declare_toplevel_type, \
173 declare_integer_type)) \ 180 declare_integer_type)) \
181 ZGC_ONLY(VM_TYPES_ZGC(declare_type, \
182 declare_toplevel_type, \
183 declare_integer_type)) \
184 \
174 /******************************************/ \ 185 /******************************************/ \
175 /* Generation and space hierarchies */ \ 186 /* Generation and space hierarchies */ \
176 /* (needed for run-time type information) */ \ 187 /* (needed for run-time type information) */ \
177 /******************************************/ \ 188 /******************************************/ \
178 \ 189 \
240 declare_constant_with_value)) \ 251 declare_constant_with_value)) \
241 PARALLELGC_ONLY(VM_INT_CONSTANTS_PARALLELGC(declare_constant, \ 252 PARALLELGC_ONLY(VM_INT_CONSTANTS_PARALLELGC(declare_constant, \
242 declare_constant_with_value)) \ 253 declare_constant_with_value)) \
243 SERIALGC_ONLY(VM_INT_CONSTANTS_SERIALGC(declare_constant, \ 254 SERIALGC_ONLY(VM_INT_CONSTANTS_SERIALGC(declare_constant, \
244 declare_constant_with_value)) \ 255 declare_constant_with_value)) \
256 ZGC_ONLY(VM_INT_CONSTANTS_ZGC(declare_constant, \
257 declare_constant_with_value)) \
245 \ 258 \
246 /********************************************/ \ 259 /********************************************/ \
247 /* Generation and Space Hierarchy Constants */ \ 260 /* Generation and Space Hierarchy Constants */ \
248 /********************************************/ \ 261 /********************************************/ \
249 \ 262 \
283 declare_constant(Generation::Other) \ 296 declare_constant(Generation::Other) \
284 \ 297 \
285 declare_constant(Generation::LogOfGenGrain) \ 298 declare_constant(Generation::LogOfGenGrain) \
286 declare_constant(Generation::GenGrain) \ 299 declare_constant(Generation::GenGrain) \
287 300
301 #define VM_LONG_CONSTANTS_GC(declare_constant) \
302 ZGC_ONLY(VM_LONG_CONSTANTS_ZGC(declare_constant))
288 303
289 #endif // SHARE_GC_SHARED_VMSTRUCTS_GC_HPP 304 #endif // SHARE_GC_SHARED_VMSTRUCTS_GC_HPP