src/hotspot/share/utilities/hashtable.cpp
changeset 58084 cddef3bde924
parent 58014 aba258cd7df8
child 58679 9c3209ff7550
child 59097 148921c01038
--- a/src/hotspot/share/utilities/hashtable.cpp	Wed Sep 11 14:16:27 2019 +0200
+++ b/src/hotspot/share/utilities/hashtable.cpp	Wed Sep 11 14:16:30 2019 +0200
@@ -101,10 +101,8 @@
 }
 
 template <MEMFLAGS F> void BasicHashtable<F>::free_buckets() {
-  if (NULL != _buckets) {
-    FREE_C_HEAP_ARRAY(HashtableBucket, _buckets);
-    _buckets = NULL;
-  }
+  FREE_C_HEAP_ARRAY(HashtableBucket, _buckets);
+  _buckets = NULL;
 }
 
 // For oops and Strings the size of the literal is interesting. For other types, nobody cares.