8180020: Improve SymbolHashMap entry handling

Reviewed-by: mschoene, coleenp, rhalade
This commit is contained in:
Rachel Protacio 2017-05-25 15:39:32 -04:00 committed by Rachel Protacio
parent dd5b1ee367
commit 65fe47bdf2

View File

@ -25,6 +25,7 @@
#ifndef SHARE_VM_OOPS_CONSTANTPOOLOOP_HPP
#define SHARE_VM_OOPS_CONSTANTPOOLOOP_HPP
#include "memory/allocation.inline.hpp"
#include "oops/arrayOop.hpp"
#include "oops/cpCache.hpp"
#include "oops/objArrayOop.hpp"
@ -1021,7 +1022,7 @@ class SymbolHashMap: public CHeapObj<mtSymbol> {
delete(cur);
}
}
delete _buckets;
FREE_C_HEAP_ARRAY(SymbolHashMapBucket, _buckets);
}
}; // End SymbolHashMap class