From 6e8b270256da97db83934f4546c4e2567d3b85b7 Mon Sep 17 00:00:00 2001 From: Coleen Phillimore Date: Mon, 6 Jan 2025 15:21:08 +0000 Subject: [PATCH] Use INTPTR_FORMAT instead of zu for secondary_supers_bitmap. --- src/hotspot/share/oops/instanceKlass.cpp | 2 +- src/hotspot/share/oops/klass.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/oops/instanceKlass.cpp b/src/hotspot/share/oops/instanceKlass.cpp index 16feac692fd45..40d57da858051 100644 --- a/src/hotspot/share/oops/instanceKlass.cpp +++ b/src/hotspot/share/oops/instanceKlass.cpp @@ -3692,7 +3692,7 @@ void InstanceKlass::print_on(outputStream* st) const { st->print(BULLET"secondary supers: "); secondary_supers()->print_value_on(st); st->cr(); st->print(BULLET"hash_slot: %d", hash_slot()); st->cr(); - st->print(BULLET"secondary bitmap: " LP64_ONLY("0x%016zu") NOT_LP64("0x%08zu"), _secondary_supers_bitmap); st->cr(); + st->print(BULLET"secondary bitmap: " INTPTR_FORMAT, _secondary_supers_bitmap); st->cr(); if (secondary_supers() != nullptr) { if (Verbose) { diff --git a/src/hotspot/share/oops/klass.cpp b/src/hotspot/share/oops/klass.cpp index 9564db6a22df2..dc11d805a5bc2 100644 --- a/src/hotspot/share/oops/klass.cpp +++ b/src/hotspot/share/oops/klass.cpp @@ -1305,7 +1305,7 @@ static void print_negative_lookup_stats(uintx bitmap, outputStream* st) { void Klass::print_secondary_supers_on(outputStream* st) const { if (secondary_supers() != nullptr) { st->print(" - "); st->print("%d elements;", _secondary_supers->length()); - st->print_cr(" bitmap: " LP64_ONLY("0x%016zu") NOT_LP64("0x%08zu"), _secondary_supers_bitmap); + st->print_cr(" bitmap: " INTPTR_FORMAT, _secondary_supers_bitmap); if (_secondary_supers_bitmap != SECONDARY_SUPERS_BITMAP_EMPTY && _secondary_supers_bitmap != SECONDARY_SUPERS_BITMAP_FULL) { st->print(" - "); print_positive_lookup_stats(secondary_supers(),