Skip to content

Commit

Permalink
Use INTPTR_FORMAT instead of zu for secondary_supers_bitmap.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleenp committed Jan 6, 2025
1 parent 15b1052 commit 6e8b270
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/oops/instanceKlass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/oops/klass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 6e8b270

Please sign in to comment.