< prev index next >

src/share/vm/services/mallocSiteTable.hpp

Print this page
rev 7876 : [mq]: nmtfix

*** 236,247 **** 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); return (hash % table_size); } static inline const NativeCallStack* hash_entry_allocation_stack() { return (NativeCallStack*)_hash_entry_allocation_stack; --- 236,246 ---- 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 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 >