< prev index next >

src/hotspot/share/jfr/utilities/jfrHashtable.hpp

Print this page
@@ -90,14 +90,12 @@
    void unlink_entry(TableEntry* entry) {
      entry->set_next(NULL);
      --_number_of_entries;
    }
    void free_buckets() {
-     if (NULL != _buckets) {
-       FREE_C_HEAP_ARRAY(Bucket, _buckets);
-       _buckets = NULL;
-     }
+     FREE_C_HEAP_ARRAY(Bucket, _buckets);
+     _buckets = NULL;
    }
    TableEntry* bucket(size_t i) { return _buckets[i].get_entry();}
    TableEntry** bucket_addr(size_t i) { return _buckets[i].entry_addr(); }
    uintptr_t table_size() const { return _table_size; }
    size_t number_of_entries() const { return _number_of_entries; }
< prev index next >