mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +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
|
@ -511,7 +511,7 @@ void DefNewGeneration::space_iterate(SpaceClosure* blk,
|
|||
HeapWord* DefNewGeneration::allocate_from_space(size_t size) {
|
||||
HeapWord* result = NULL;
|
||||
if (Verbose && PrintGCDetails) {
|
||||
gclog_or_tty->print("DefNewGeneration::allocate_from_space(%u):"
|
||||
gclog_or_tty->print("DefNewGeneration::allocate_from_space(" SIZE_FORMAT "):"
|
||||
" will_fail: %s"
|
||||
" heap_lock: %s"
|
||||
" free: " SIZE_FORMAT,
|
||||
|
@ -756,7 +756,7 @@ void DefNewGeneration::preserve_mark_if_necessary(oop obj, markOop m) {
|
|||
|
||||
void DefNewGeneration::handle_promotion_failure(oop old) {
|
||||
if (PrintPromotionFailure && !_promotion_failed) {
|
||||
gclog_or_tty->print(" (promotion failure size = " SIZE_FORMAT ") ",
|
||||
gclog_or_tty->print(" (promotion failure size = %d) ",
|
||||
old->size());
|
||||
}
|
||||
_promotion_failed = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue