Skip to content
Permalink
Browse files
8261334: NMT: tuning statistic shows incorrect hash distribution
Reviewed-by: zgu, shade
  • Loading branch information
tstuefe committed Feb 8, 2021
1 parent 92c6e6d commit 20d7713c57d312e7f196f6887666c195f00da99c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hotspot/share/services/memTracker.cpp
@@ -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;

0 comments on commit 20d7713

Please sign in to comment.