--- old/src/hotspot/share/utilities/hashtable.inline.hpp 2018-11-16 19:19:39.872373869 -0800 +++ new/src/hotspot/share/utilities/hashtable.inline.hpp 2018-11-16 19:19:39.604363668 -0800 @@ -54,6 +54,13 @@ _buckets = buckets; } +template inline BasicHashtable::~BasicHashtable() { + for (int i = 0; i < _entry_blocks->length(); i++) { + FREE_C_HEAP_ARRAY(char, _entry_blocks->at(i)); + } + delete _entry_blocks; + free_buckets(); +} template inline void BasicHashtable::initialize(int table_size, int entry_size, int number_of_entries) { @@ -64,6 +71,7 @@ _first_free_entry = NULL; _end_block = NULL; _number_of_entries = number_of_entries; + _entry_blocks = new(ResourceObj::C_HEAP, F) GrowableArray(4, true, F); }