mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-24 02:09:43 +01:00
8261334: NMT: tuning statistic shows incorrect hash distribution
Reviewed-by: zgu, shade
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user