8180020: Improve SymbolHashMap entry handling
Reviewed-by: mschoene, coleenp, rhalade
Contributed-by: rachel.protacio@oracle.com
--- a/src/hotspot/share/oops/constantPool.hpp Mon Mar 20 13:05:00 2017 -0400
+++ b/src/hotspot/share/oops/constantPool.hpp Thu May 25 15:39:32 2017 -0400
@@ -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 @@
delete(cur);
}
}
- delete _buckets;
+ FREE_C_HEAP_ARRAY(SymbolHashMapBucket, _buckets);
}
}; // End SymbolHashMap class