Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
/ jdk16u Public archive

Commit

Permalink
8261334: NMT: tuning statistic shows incorrect hash distribution
Browse files Browse the repository at this point in the history
Backport-of: 20d7713c57d312e7f196f6887666c195f00da99c
  • Loading branch information
Harold Seigel committed Feb 25, 2021
1 parent 262c989 commit 9fa0e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/services/memTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

1 comment on commit 9fa0e03

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.