< prev index next >
src/hotspot/share/gc/shared/vmStructs_gc.hpp
Print this page
@@ -32,34 +32,40 @@
#include "gc/shared/genCollectedHeap.hpp"
#include "gc/shared/generation.hpp"
#include "gc/shared/generationSpec.hpp"
#include "gc/shared/oopStorage.hpp"
#include "gc/shared/space.hpp"
-#include "gc/serial/defNewGeneration.hpp"
-#include "gc/serial/vmStructs_serial.hpp"
-#if INCLUDE_ALL_GCS
+#if INCLUDE_CMSGC
#include "gc/cms/vmStructs_cms.hpp"
+#endif
+#if INCLUDE_G1GC
#include "gc/g1/vmStructs_g1.hpp"
+#endif
+#if INCLUDE_PARALLELGC
#include "gc/parallel/vmStructs_parallelgc.hpp"
#endif
+#if INCLUDE_SERIALGC
+#include "gc/serial/defNewGeneration.hpp"
+#include "gc/serial/vmStructs_serial.hpp"
+#endif
#define VM_STRUCTS_GC(nonstatic_field, \
volatile_nonstatic_field, \
static_field, \
unchecked_nonstatic_field) \
- ALL_GCS_ONLY(VM_STRUCTS_CMSGC(nonstatic_field, \
+ CMSGC_ONLY(VM_STRUCTS_CMSGC(nonstatic_field, \
volatile_nonstatic_field, \
static_field)) \
- ALL_GCS_ONLY(VM_STRUCTS_G1GC(nonstatic_field, \
+ G1GC_ONLY(VM_STRUCTS_G1GC(nonstatic_field, \
volatile_nonstatic_field, \
static_field)) \
- ALL_GCS_ONLY(VM_STRUCTS_PARALLELGC(nonstatic_field, \
+ PARALLELGC_ONLY(VM_STRUCTS_PARALLELGC(nonstatic_field, \
volatile_nonstatic_field, \
static_field)) \
- VM_STRUCTS_SERIALGC(nonstatic_field, \
+ SERIALGC_ONLY(VM_STRUCTS_SERIALGC(nonstatic_field, \
volatile_nonstatic_field, \
- static_field) \
+ static_field)) \
/**********************************************************************************/ \
/* Generation and Space hierarchies */ \
/**********************************************************************************/ \
\
unchecked_nonstatic_field(AgeTable, sizes, sizeof(AgeTable::sizes)) \
@@ -113,17 +119,10 @@
\
nonstatic_field(ContiguousSpace, _top, HeapWord*) \
nonstatic_field(ContiguousSpace, _concurrent_iteration_safe_limit, HeapWord*) \
nonstatic_field(ContiguousSpace, _saved_mark_word, HeapWord*) \
\
- nonstatic_field(DefNewGeneration, _old_gen, Generation*) \
- nonstatic_field(DefNewGeneration, _tenuring_threshold, uint) \
- nonstatic_field(DefNewGeneration, _age_table, AgeTable) \
- nonstatic_field(DefNewGeneration, _eden_space, ContiguousSpace*) \
- nonstatic_field(DefNewGeneration, _from_space, ContiguousSpace*) \
- nonstatic_field(DefNewGeneration, _to_space, ContiguousSpace*) \
- \
nonstatic_field(Generation, _reserved, MemRegion) \
nonstatic_field(Generation, _virtual_space, VirtualSpace) \
nonstatic_field(Generation, _stat_record, Generation::StatRecord) \
\
nonstatic_field(Generation::StatRecord, invocations, int) \
@@ -149,31 +148,30 @@
nonstatic_field(Space, _end, HeapWord*)
#define VM_TYPES_GC(declare_type, \
declare_toplevel_type, \
declare_integer_type) \
- ALL_GCS_ONLY(VM_TYPES_CMSGC(declare_type, \
+ CMSGC_ONLY(VM_TYPES_CMSGC(declare_type, \
declare_toplevel_type, \
declare_integer_type)) \
- ALL_GCS_ONLY(VM_TYPES_G1GC(declare_type, \
+ G1GC_ONLY(VM_TYPES_G1GC(declare_type, \
declare_toplevel_type, \
declare_integer_type)) \
- ALL_GCS_ONLY(VM_TYPES_PARALLELGC(declare_type, \
+ PARALLELGC_ONLY(VM_TYPES_PARALLELGC(declare_type, \
declare_toplevel_type, \
declare_integer_type)) \
- VM_TYPES_SERIALGC(declare_type, \
+ SERIALGC_ONLY(VM_TYPES_SERIALGC(declare_type, \
declare_toplevel_type, \
- declare_integer_type) \
+ declare_integer_type)) \
/******************************************/ \
/* Generation and space hierarchies */ \
/* (needed for run-time type information) */ \
/******************************************/ \
\
declare_toplevel_type(CollectedHeap) \
declare_type(GenCollectedHeap, CollectedHeap) \
declare_toplevel_type(Generation) \
- declare_type(DefNewGeneration, Generation) \
declare_type(CardGeneration, Generation) \
declare_toplevel_type(Space) \
declare_type(CompactibleSpace, Space) \
declare_type(ContiguousSpace, CompactibleSpace) \
declare_type(OffsetTableContigSpace, ContiguousSpace) \
@@ -223,18 +221,18 @@
\
declare_toplevel_type(BarrierSet::FakeRtti)
#define VM_INT_CONSTANTS_GC(declare_constant, \
declare_constant_with_value) \
- ALL_GCS_ONLY(VM_INT_CONSTANTS_CMSGC(declare_constant, \
+ CMSGC_ONLY(VM_INT_CONSTANTS_CMSGC(declare_constant, \
declare_constant_with_value)) \
- ALL_GCS_ONLY(VM_INT_CONSTANTS_G1GC(declare_constant, \
+ G1GC_ONLY(VM_INT_CONSTANTS_G1GC(declare_constant, \
declare_constant_with_value)) \
- ALL_GCS_ONLY(VM_INT_CONSTANTS_PARALLELGC(declare_constant, \
+ PARALLELGC_ONLY(VM_INT_CONSTANTS_PARALLELGC(declare_constant, \
+ declare_constant_with_value)) \
+ SERIALGC_ONLY(VM_INT_CONSTANTS_SERIALGC(declare_constant, \
declare_constant_with_value)) \
- VM_INT_CONSTANTS_SERIALGC(declare_constant, \
- declare_constant_with_value) \
\
/********************************************/ \
/* Generation and Space Hierarchy Constants */ \
/********************************************/ \
\
< prev index next >