< prev index next >

src/hotspot/share/gc/z/vmStructs_z.hpp

Print this page




  51 };
  52 
  53 typedef ZAddressRangeMap<ZPageTableEntry, ZPageSizeMinShift> ZAddressRangeMapForPageTable;
  54 
  55 #define VM_STRUCTS_ZGC(nonstatic_field, volatile_nonstatic_field, static_field)                      \
  56   static_field(ZGlobalsForVMStructs,            _instance_p,          ZGlobalsForVMStructs*)         \
  57   nonstatic_field(ZGlobalsForVMStructs,         _ZGlobalPhase,        uint32_t*)                     \
  58   nonstatic_field(ZGlobalsForVMStructs,         _ZAddressGoodMask,    uintptr_t*)                    \
  59   nonstatic_field(ZGlobalsForVMStructs,         _ZAddressBadMask,     uintptr_t*)                    \
  60   nonstatic_field(ZGlobalsForVMStructs,         _ZAddressWeakBadMask, uintptr_t*)                    \
  61   nonstatic_field(ZGlobalsForVMStructs,         _ZObjectAlignmentSmallShift, const int*)             \
  62   nonstatic_field(ZGlobalsForVMStructs,         _ZObjectAlignmentSmall, const int*)                  \
  63                                                                                                      \
  64   nonstatic_field(ZCollectedHeap,               _heap,                ZHeap)                         \
  65                                                                                                      \
  66   nonstatic_field(ZHeap,                        _page_allocator,      ZPageAllocator)                \
  67   nonstatic_field(ZHeap,                        _pagetable,           ZPageTable)                    \
  68                                                                                                      \
  69   nonstatic_field(ZPage,                        _type,                const uint8_t)                 \
  70   nonstatic_field(ZPage,                        _virtual,             const ZVirtualMemory)          \


  71   nonstatic_field(ZPage,                        _forwarding,          ZForwardingTable)              \
  72                                                                                                      \
  73   nonstatic_field(ZPageAllocator,               _physical,            ZPhysicalMemoryManager)        \
  74   nonstatic_field(ZPageAllocator,               _used,                size_t)                        \
  75                                                                                                      \
  76   nonstatic_field(ZPageTable,                   _map,                 ZAddressRangeMapForPageTable)  \
  77                                                                                                      \
  78   nonstatic_field(ZAddressRangeMapForPageTable, _map,                 ZPageTableEntry* const)        \
  79                                                                                                      \
  80   nonstatic_field(ZVirtualMemory,                _start,              uintptr_t)                     \
  81   nonstatic_field(ZVirtualMemory,                _end,                uintptr_t)                     \
  82                                                                                                      \
  83   nonstatic_field(ZForwardingTable,              _table,              ZForwardingTableEntry*)        \
  84   nonstatic_field(ZForwardingTable,              _size,               size_t)                        \
  85                                                                                                      \
  86   nonstatic_field(ZPhysicalMemoryManager,        _max_capacity,       const size_t)                  \
  87   nonstatic_field(ZPhysicalMemoryManager,        _capacity,           size_t)
  88 
  89 #define VM_INT_CONSTANTS_ZGC(declare_constant, declare_constant_with_value)                          \
  90   declare_constant(ZPhaseRelocate)                                                                   \
  91   declare_constant(ZPageTypeSmall)                                                                   \
  92   declare_constant(ZPageTypeMedium)                                                                  \
  93   declare_constant(ZPageTypeLarge)                                                                   \
  94   declare_constant(ZObjectAlignmentMediumShift)                                                      \
  95   declare_constant(ZObjectAlignmentLargeShift)
  96 
  97 #define VM_LONG_CONSTANTS_ZGC(declare_constant)                                                      \
  98   declare_constant(ZPageSizeSmallShift)                                                              \
  99   declare_constant(ZPageSizeMediumShift)                                                             \
 100   declare_constant(ZPageSizeMinShift)                                                                \
 101   declare_constant(ZAddressOffsetShift)                                                              \
 102   declare_constant(ZAddressOffsetBits)                                                               \
 103   declare_constant(ZAddressOffsetMask)                                                               \

 104   declare_constant(ZAddressSpaceStart)
 105 
 106 #define VM_TYPES_ZGC(declare_type, declare_toplevel_type, declare_integer_type)                      \
 107   declare_toplevel_type(ZGlobalsForVMStructs)                                                        \
 108   declare_type(ZCollectedHeap, CollectedHeap)                                                        \
 109   declare_toplevel_type(ZHeap)                                                                       \
 110   declare_toplevel_type(ZPage)                                                                       \
 111   declare_toplevel_type(ZPageAllocator)                                                              \
 112   declare_toplevel_type(ZPageTable)                                                                  \
 113   declare_toplevel_type(ZPageTableEntry)                                                             \
 114   declare_toplevel_type(ZAddressRangeMapForPageTable)                                                \
 115   declare_toplevel_type(ZVirtualMemory)                                                              \
 116   declare_toplevel_type(ZForwardingTable)                                                            \
 117   declare_toplevel_type(ZForwardingTableEntry)                                                       \
 118   declare_toplevel_type(ZPhysicalMemoryManager)
 119 
 120 #endif // SHARE_VM_GC_Z_VMSTRUCTS_Z_HPP


  51 };
  52 
  53 typedef ZAddressRangeMap<ZPageTableEntry, ZPageSizeMinShift> ZAddressRangeMapForPageTable;
  54 
  55 #define VM_STRUCTS_ZGC(nonstatic_field, volatile_nonstatic_field, static_field)                      \
  56   static_field(ZGlobalsForVMStructs,            _instance_p,          ZGlobalsForVMStructs*)         \
  57   nonstatic_field(ZGlobalsForVMStructs,         _ZGlobalPhase,        uint32_t*)                     \
  58   nonstatic_field(ZGlobalsForVMStructs,         _ZAddressGoodMask,    uintptr_t*)                    \
  59   nonstatic_field(ZGlobalsForVMStructs,         _ZAddressBadMask,     uintptr_t*)                    \
  60   nonstatic_field(ZGlobalsForVMStructs,         _ZAddressWeakBadMask, uintptr_t*)                    \
  61   nonstatic_field(ZGlobalsForVMStructs,         _ZObjectAlignmentSmallShift, const int*)             \
  62   nonstatic_field(ZGlobalsForVMStructs,         _ZObjectAlignmentSmall, const int*)                  \
  63                                                                                                      \
  64   nonstatic_field(ZCollectedHeap,               _heap,                ZHeap)                         \
  65                                                                                                      \
  66   nonstatic_field(ZHeap,                        _page_allocator,      ZPageAllocator)                \
  67   nonstatic_field(ZHeap,                        _pagetable,           ZPageTable)                    \
  68                                                                                                      \
  69   nonstatic_field(ZPage,                        _type,                const uint8_t)                 \
  70   nonstatic_field(ZPage,                        _virtual,             const ZVirtualMemory)          \
  71   volatile_nonstatic_field(ZPage,               _top,                 uintptr_t)                     \
  72   volatile_nonstatic_field(ZPage,               _refcount,            uint32_t)                      \
  73   nonstatic_field(ZPage,                        _forwarding,          ZForwardingTable)              \
  74                                                                                                      \
  75   nonstatic_field(ZPageAllocator,               _physical,            ZPhysicalMemoryManager)        \
  76   nonstatic_field(ZPageAllocator,               _used,                size_t)                        \
  77                                                                                                      \
  78   nonstatic_field(ZPageTable,                   _map,                 ZAddressRangeMapForPageTable)  \
  79                                                                                                      \
  80   nonstatic_field(ZAddressRangeMapForPageTable, _map,                 ZPageTableEntry* const)        \
  81                                                                                                      \
  82   nonstatic_field(ZVirtualMemory,                _start,              uintptr_t)                     \
  83   nonstatic_field(ZVirtualMemory,                _end,                uintptr_t)                     \
  84                                                                                                      \
  85   nonstatic_field(ZForwardingTable,              _table,              ZForwardingTableEntry*)        \
  86   nonstatic_field(ZForwardingTable,              _size,               size_t)                        \
  87                                                                                                      \
  88   nonstatic_field(ZPhysicalMemoryManager,        _max_capacity,       const size_t)                  \
  89   nonstatic_field(ZPhysicalMemoryManager,        _capacity,           size_t)
  90 
  91 #define VM_INT_CONSTANTS_ZGC(declare_constant, declare_constant_with_value)                          \
  92   declare_constant(ZPhaseRelocate)                                                                   \
  93   declare_constant(ZPageTypeSmall)                                                                   \
  94   declare_constant(ZPageTypeMedium)                                                                  \
  95   declare_constant(ZPageTypeLarge)                                                                   \
  96   declare_constant(ZObjectAlignmentMediumShift)                                                      \
  97   declare_constant(ZObjectAlignmentLargeShift)
  98 
  99 #define VM_LONG_CONSTANTS_ZGC(declare_constant)                                                      \
 100   declare_constant(ZPageSizeSmallShift)                                                              \
 101   declare_constant(ZPageSizeMediumShift)                                                             \
 102   declare_constant(ZPageSizeMinShift)                                                                \
 103   declare_constant(ZAddressOffsetShift)                                                              \
 104   declare_constant(ZAddressOffsetBits)                                                               \
 105   declare_constant(ZAddressOffsetMask)                                                               \
 106   declare_constant(ZAddressOffsetMax)                                                                \
 107   declare_constant(ZAddressSpaceStart)
 108 
 109 #define VM_TYPES_ZGC(declare_type, declare_toplevel_type, declare_integer_type)                      \
 110   declare_toplevel_type(ZGlobalsForVMStructs)                                                        \
 111   declare_type(ZCollectedHeap, CollectedHeap)                                                        \
 112   declare_toplevel_type(ZHeap)                                                                       \
 113   declare_toplevel_type(ZPage)                                                                       \
 114   declare_toplevel_type(ZPageAllocator)                                                              \
 115   declare_toplevel_type(ZPageTable)                                                                  \
 116   declare_toplevel_type(ZPageTableEntry)                                                             \
 117   declare_toplevel_type(ZAddressRangeMapForPageTable)                                                \
 118   declare_toplevel_type(ZVirtualMemory)                                                              \
 119   declare_toplevel_type(ZForwardingTable)                                                            \
 120   declare_toplevel_type(ZForwardingTableEntry)                                                       \
 121   declare_toplevel_type(ZPhysicalMemoryManager)
 122 
 123 #endif // SHARE_VM_GC_Z_VMSTRUCTS_Z_HPP
< prev index next >