mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8200729: Conditional compilation of GCs
Reviewed-by: ehelin, coleenp, kvn, ihse
This commit is contained in:
parent
d1cf230fc1
commit
1cb95bd3d1
123 changed files with 661 additions and 447 deletions
|
@ -153,14 +153,14 @@ class BlockOffsetSharedArray: public CHeapObj<mtGC> {
|
|||
|
||||
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");
|
||||
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_ALL_GCS
|
||||
#endif // INCLUDE_CMSGC
|
||||
memset(start_ptr, offset, num_cards);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue