8180020: Improve SymbolHashMap entry handling
authorrprotacio
Thu, 25 May 2017 15:39:32 -0400
changeset 48556 d44d912ea9bb
parent 48555 9c56c953d8db
child 48557 2e867226b914
8180020: Improve SymbolHashMap entry handling Reviewed-by: mschoene, coleenp, rhalade Contributed-by: rachel.protacio@oracle.com
src/hotspot/share/oops/constantPool.hpp
--- 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