< prev index next >
src/hotspot/share/gc/shared/blockOffsetTable.hpp
Print this page
rev 49911 : imported patch removeAllGCs
*** 151,168 ****
VirtualSpace _vs;
u_char* _offset_array; // byte array keeping backwards offsets
void fill_range(size_t start, size_t num_cards, u_char offset) {
void* start_ptr = &_offset_array[start];
- #if INCLUDE_ALL_GCS
// If collector is concurrent, special handling may be needed.
! assert(!UseG1GC, "Shouldn't be here when using G1");
if (UseConcMarkSweepGC) {
memset_with_concurrent_readers(start_ptr, offset, num_cards);
return;
}
! #endif // INCLUDE_ALL_GCS
memset(start_ptr, offset, num_cards);
}
protected:
// Bounds checking accessors:
--- 151,168 ----
VirtualSpace _vs;
u_char* _offset_array; // byte array keeping backwards offsets
void fill_range(size_t start, size_t num_cards, u_char offset) {
void* start_ptr = &_offset_array[start];
// If collector is concurrent, special handling may be needed.
! G1GC_ONLY(assert(!UseG1GC, "Shouldn't be here when using G1");)
! #if INCLUDE_CMSGC
if (UseConcMarkSweepGC) {
memset_with_concurrent_readers(start_ptr, offset, num_cards);
return;
}
! #endif // INCLUDE_CMSGC
memset(start_ptr, offset, num_cards);
}
protected:
// Bounds checking accessors:
< prev index next >