diff -r 3f6358b7c82c -r f2e2922222a4 hotspot/src/share/vm/services/mallocSiteTable.hpp --- 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); }