diff a/src/hotspot/share/gc/g1/g1CollectionSet.cpp b/src/hotspot/share/gc/g1/g1CollectionSet.cpp --- a/src/hotspot/share/gc/g1/g1CollectionSet.cpp +++ b/src/hotspot/share/gc/g1/g1CollectionSet.cpp @@ -70,13 +70,11 @@ _inc_predicted_elapsed_time_ms(0.0), _inc_predicted_elapsed_time_ms_diff(0.0) { } G1CollectionSet::~G1CollectionSet() { - if (_collection_set_regions != NULL) { - FREE_C_HEAP_ARRAY(uint, _collection_set_regions); - } + FREE_C_HEAP_ARRAY(uint, _collection_set_regions); free_optional_regions(); clear_candidates(); } void G1CollectionSet::init_region_lengths(uint eden_cset_region_length,