8261334: NMT: tuning statistic shows incorrect hash distribution

Reviewed-by: zgu, shade
This commit is contained in:
Thomas Stuefe 2021-02-08 18:46:18 +00:00
parent 92c6e6dffa
commit 20d7713c57

View File

@ -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;