diff a/src/hotspot/share/gc/g1/heapRegionManager.cpp b/src/hotspot/share/gc/g1/heapRegionManager.cpp --- a/src/hotspot/share/gc/g1/heapRegionManager.cpp +++ b/src/hotspot/share/gc/g1/heapRegionManager.cpp @@ -529,13 +529,11 @@ memset(new_claims, Unclaimed, sizeof(*_claims) * _n_regions); _claims = new_claims; } HeapRegionClaimer::~HeapRegionClaimer() { - if (_claims != NULL) { - FREE_C_HEAP_ARRAY(uint, _claims); - } + FREE_C_HEAP_ARRAY(uint, _claims); } uint HeapRegionClaimer::offset_for_worker(uint worker_id) const { assert(worker_id < _n_workers, "Invalid worker_id."); return _n_regions * worker_id / _n_workers;