src/hotspot/share/oops/constantPool.cpp
changeset 49360 886acec3b4c6
parent 49348 fde3feaaa4ed
child 49449 ef5d5d343e2a
--- a/src/hotspot/share/oops/constantPool.cpp	Wed Mar 07 21:57:36 2018 +0100
+++ b/src/hotspot/share/oops/constantPool.cpp	Thu Mar 08 09:56:29 2018 +0100
@@ -2533,6 +2533,17 @@
 }
 
 
+SymbolHashMap::~SymbolHashMap() {
+  SymbolHashMapEntry* next;
+  for (int i = 0; i < _table_size; i++) {
+    for (SymbolHashMapEntry* cur = bucket(i); cur != NULL; cur = next) {
+      next = cur->next();
+      delete(cur);
+    }
+  }
+  FREE_C_HEAP_ARRAY(SymbolHashMapBucket, _buckets);
+}
+
 void SymbolHashMap::add_entry(Symbol* sym, u2 value) {
   char *str = sym->as_utf8();
   unsigned int hash = compute_hash(str, sym->utf8_length());