hotspot/src/share/vm/services/mallocSiteTable.hpp
changeset 29462 f2e2922222a4
parent 26144 35e11b657728
child 46264 03e564780d23
--- a/hotspot/src/share/vm/services/mallocSiteTable.hpp	Mon Mar 09 13:39:24 2015 -0400
+++ b/hotspot/src/share/vm/services/mallocSiteTable.hpp	Tue Mar 10 04:53:58 2015 -0700
@@ -238,8 +238,7 @@
   static MallocSite* malloc_site(size_t bucket_idx, size_t pos_idx);
   static bool walk(MallocSiteWalker* walker);
 
-  static inline int hash_to_index(int  hash) {
-    hash = (hash > 0) ? hash : (-hash);
+  static inline unsigned int hash_to_index(unsigned int hash) {
     return (hash % table_size);
   }