changeset 48557:d44d912ea9bb

8180020: Improve SymbolHashMap entry handling Reviewed-by: mschoene, coleenp, rhalade Contributed-by: rachel.protacio@oracle.com
author rprotacio
date Thu, 25 May 2017 15:39:32 -0400
parents 9c56c953d8db
children 2e867226b914
files src/hotspot/share/oops/constantPool.hpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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