< prev index next >

src/share/vm/services/mallocSiteTable.hpp

Print this page
rev 7899 : imported patch nmtfix

@@ -236,12 +236,11 @@
 
   static MallocSite* lookup_or_add(const NativeCallStack& key, size_t* bucket_idx, size_t* pos_idx);
   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);
   }
 
   static inline const NativeCallStack* hash_entry_allocation_stack() {
     return (NativeCallStack*)_hash_entry_allocation_stack;
< prev index next >