Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/hotspot/share/gc/shared/ageTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
#include "utilities/copy.hpp"
#include "logging/logStream.hpp"

/* Copyright (c) 1992, 2025, Oracle and/or its affiliates, and Stanford University.
See the LICENSE file for license information. */

AgeTable::AgeTable(bool global) : _use_perf_data(UsePerfData && global) {

clear();
Expand Down
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: " INTPTR_FORMAT, _secondary_supers_bitmap); st->cr();
st->print(BULLET"secondary bitmap: " UINTX_FORMAT_X_0, _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: " INTPTR_FORMAT, _secondary_supers_bitmap);
st->print_cr(" bitmap: " UINTX_FORMAT_X_0, _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
4 changes: 3 additions & 1 deletion src/hotspot/share/utilities/globalDefinitions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,15 @@ class oopDesc;
#define JULONG_FORMAT_X UINT64_FORMAT_X
#endif

// Format pointers which change size between 32- and 64-bit.
// Format pointers and padded integral values which change size between 32- and 64-bit.
#ifdef _LP64
#define INTPTR_FORMAT "0x%016" PRIxPTR
#define PTR_FORMAT "0x%016" PRIxPTR
#define UINTX_FORMAT_X_0 "0x%016" PRIxPTR
#else // !_LP64
#define INTPTR_FORMAT "0x%08" PRIxPTR
#define PTR_FORMAT "0x%08" PRIxPTR
#define UINTX_FORMAT_X_0 "0x%08" PRIxPTR
#endif // _LP64

// Convert pointer to intptr_t, for use in printing pointers.
Expand Down