8261334: NMT: tuning statistic shows incorrect hash distribution
Reviewed-by: zgu, shade
This commit is contained in:
parent
92c6e6dffa
commit
20d7713c57
@ -260,7 +260,7 @@ class StatisticsWalker : public MallocSiteWalker {
|
||||
_stack_depth_distribution[frames - 1] ++;
|
||||
|
||||
// hash distribution
|
||||
int hash_bucket = e->hash() % MallocSiteTable::hash_buckets();
|
||||
int hash_bucket = ((unsigned)e->hash()) % MallocSiteTable::hash_buckets();
|
||||
if (_current_hash_bucket == -1) {
|
||||
_current_hash_bucket = hash_bucket;
|
||||
_current_bucket_length = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user