Skip to content


8310974: NMT: Arena diffs miss the scale
Browse files Browse the repository at this point in the history
Reviewed-by: zgu, stuefe
  • Loading branch information
shipilev committed Jun 28, 2023
1 parent f17bfee commit 46e4ee1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hotspot/share/services/memReporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,9 @@ void MemSummaryDiffReporter::print_arena_diff(size_t current_amount, size_t curr
const char* scale = current_scale();
outputStream* out = output();
out->print("arena=" SIZE_FORMAT "%s", amount_in_current_scale(current_amount), scale);
if (diff_in_current_scale(current_amount, early_amount) != 0) {
out->print(" " INT64_PLUS_FORMAT "d", diff_in_current_scale(current_amount, early_amount));
int64_t amount_diff = diff_in_current_scale(current_amount, early_amount);
if (amount_diff != 0) {
out->print(" " INT64_PLUS_FORMAT "%s", amount_diff, scale);

out->print(" #" SIZE_FORMAT "", current_count);
Expand Down

1 comment on commit 46e4ee1

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.