mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8039743: Use correct format specifier to print size_t values and pointers in the GC code
Co-authored-by: Mikael Vidstedt <mikael.vidstedt@oracle.com> Reviewed-by: jmasa, sjohanss
This commit is contained in:
parent
4bc795f2db
commit
d78446aa45
28 changed files with 101 additions and 87 deletions
|
@ -143,7 +143,8 @@ void AdjoiningGenerations::request_old_gen_expansion(size_t expand_in_bytes) {
|
|||
|
||||
if (TraceAdaptiveGCBoundary) {
|
||||
gclog_or_tty->print_cr("Before expansion of old gen with boundary move");
|
||||
gclog_or_tty->print_cr(" Requested change: 0x%x Attempted change: 0x%x",
|
||||
gclog_or_tty->print_cr(" Requested change: " SIZE_FORMAT_HEX
|
||||
" Attempted change: " SIZE_FORMAT_HEX,
|
||||
expand_in_bytes, change_in_bytes);
|
||||
if (!PrintHeapAtGC) {
|
||||
Universe::print_on(gclog_or_tty);
|
||||
|
@ -201,7 +202,7 @@ bool AdjoiningGenerations::request_young_gen_expansion(size_t expand_in_bytes) {
|
|||
|
||||
if (TraceAdaptiveGCBoundary) {
|
||||
gclog_or_tty->print_cr("Before expansion of young gen with boundary move");
|
||||
gclog_or_tty->print_cr(" Requested change: 0x%x Attempted change: 0x%x",
|
||||
gclog_or_tty->print_cr(" Requested change: " SIZE_FORMAT_HEX " Attempted change: " SIZE_FORMAT_HEX,
|
||||
expand_in_bytes, change_in_bytes);
|
||||
if (!PrintHeapAtGC) {
|
||||
Universe::print_on(gclog_or_tty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue