comparison src/hotspot/share/gc/shared/blockOffsetTable.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 2956d0ece7a9
children 259c36ef27df ee29b516a36a
comparison
equal deleted inserted replaced
1:eb0070065a29 2:a76b692ca9b8
151 VirtualSpace _vs; 151 VirtualSpace _vs;
152 u_char* _offset_array; // byte array keeping backwards offsets 152 u_char* _offset_array; // byte array keeping backwards offsets
153 153
154 void fill_range(size_t start, size_t num_cards, u_char offset) { 154 void fill_range(size_t start, size_t num_cards, u_char offset) {
155 void* start_ptr = &_offset_array[start]; 155 void* start_ptr = &_offset_array[start];
156 #if INCLUDE_ALL_GCS
157 // If collector is concurrent, special handling may be needed. 156 // If collector is concurrent, special handling may be needed.
158 assert(!UseG1GC, "Shouldn't be here when using G1"); 157 G1GC_ONLY(assert(!UseG1GC, "Shouldn't be here when using G1");)
158 #if INCLUDE_CMSGC
159 if (UseConcMarkSweepGC) { 159 if (UseConcMarkSweepGC) {
160 memset_with_concurrent_readers(start_ptr, offset, num_cards); 160 memset_with_concurrent_readers(start_ptr, offset, num_cards);
161 return; 161 return;
162 } 162 }
163 #endif // INCLUDE_ALL_GCS 163 #endif // INCLUDE_CMSGC
164 memset(start_ptr, offset, num_cards); 164 memset(start_ptr, offset, num_cards);
165 } 165 }
166 166
167 protected: 167 protected:
168 // Bounds checking accessors: 168 // Bounds checking accessors: