< prev index next >

src/hotspot/share/gc/shared/cardTableRS.cpp

Print this page
@@ -622,30 +622,15 @@
      _last_cur_val_in_gen[i] = clean_card_val();
    }
  }
  
  CardTableRS::~CardTableRS() {
-   if (_last_cur_val_in_gen) {
-     FREE_C_HEAP_ARRAY(CardValue, _last_cur_val_in_gen);
-     _last_cur_val_in_gen = NULL;
-   }
-   if (_lowest_non_clean) {
-     FREE_C_HEAP_ARRAY(CardArr, _lowest_non_clean);
-     _lowest_non_clean = NULL;
-   }
-   if (_lowest_non_clean_chunk_size) {
-     FREE_C_HEAP_ARRAY(size_t, _lowest_non_clean_chunk_size);
-     _lowest_non_clean_chunk_size = NULL;
-   }
-   if (_lowest_non_clean_base_chunk_index) {
-     FREE_C_HEAP_ARRAY(uintptr_t, _lowest_non_clean_base_chunk_index);
-     _lowest_non_clean_base_chunk_index = NULL;
-   }
-   if (_last_LNC_resizing_collection) {
-     FREE_C_HEAP_ARRAY(int, _last_LNC_resizing_collection);
-     _last_LNC_resizing_collection = NULL;
-   }
+   FREE_C_HEAP_ARRAY(CardValue, _last_cur_val_in_gen);
+   FREE_C_HEAP_ARRAY(CardArr, _lowest_non_clean);
+   FREE_C_HEAP_ARRAY(size_t, _lowest_non_clean_chunk_size);
+   FREE_C_HEAP_ARRAY(uintptr_t, _lowest_non_clean_base_chunk_index);
+   FREE_C_HEAP_ARRAY(int, _last_LNC_resizing_collection);
  }
  
  void CardTableRS::initialize() {
    CardTable::initialize();
    _lowest_non_clean =
< prev index next >