Skip to content

Commit 6bd2794

Browse files
committedSep 8, 2022
8293304: Replace some usages of INTPTR_FORMAT with PTR_FORMAT
Reviewed-by: kbarrett, coleenp
1 parent 98da03a commit 6bd2794

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+137
-131
lines changed
 

‎src/hotspot/share/gc/g1/g1CardTable.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ void G1CardTable::initialize(G1RegionToSpaceMapper* mapper) {
6767
assert(byte_for(high_bound-1) <= &_byte_map[_last_valid_index], "Checking end of map");
6868

6969
log_trace(gc, barrier)("G1CardTable::G1CardTable: ");
70-
log_trace(gc, barrier)(" &_byte_map[0]: " INTPTR_FORMAT " &_byte_map[_last_valid_index]: " INTPTR_FORMAT,
70+
log_trace(gc, barrier)(" &_byte_map[0]: " PTR_FORMAT " &_byte_map[_last_valid_index]: " PTR_FORMAT,
7171
p2i(&_byte_map[0]), p2i(&_byte_map[_last_valid_index]));
72-
log_trace(gc, barrier)(" _byte_map_base: " INTPTR_FORMAT, p2i(_byte_map_base));
72+
log_trace(gc, barrier)(" _byte_map_base: " PTR_FORMAT, p2i(_byte_map_base));
7373
}
7474

7575
bool G1CardTable::is_in_young(const void* p) const {

‎src/hotspot/share/gc/g1/g1CollectedHeap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,7 @@ class PrintRSetsClosure : public HeapRegionClosure {
25132513
if (occupied == 0) {
25142514
tty->print_cr(" RSet is empty");
25152515
} else {
2516-
tty->print_cr("hrrs " INTPTR_FORMAT, p2i(hrrs));
2516+
tty->print_cr("hrrs " PTR_FORMAT, p2i(hrrs));
25172517
}
25182518
tty->print_cr("----------");
25192519
return false;

0 commit comments

Comments
 (0)
Please sign in to comment.