1.1 --- a/src/share/vm/gc_implementation/g1/heapRegion.cpp Wed Sep 25 17:47:51 2013 +0200 1.2 +++ b/src/share/vm/gc_implementation/g1/heapRegion.cpp Thu Sep 26 10:25:02 2013 -0400 1.3 @@ -637,7 +637,7 @@ 1.4 gclog_or_tty->print_cr("Object "PTR_FORMAT" in region " 1.5 "["PTR_FORMAT", "PTR_FORMAT") is above " 1.6 "top "PTR_FORMAT, 1.7 - obj, _hr->bottom(), _hr->end(), _hr->top()); 1.8 + (void *)obj, _hr->bottom(), _hr->end(), _hr->top()); 1.9 _failures = true; 1.10 return; 1.11 } 1.12 @@ -951,12 +951,12 @@ 1.13 Klass* klass = obj->klass(); 1.14 if (!klass->is_metaspace_object()) { 1.15 gclog_or_tty->print_cr("klass "PTR_FORMAT" of object "PTR_FORMAT" " 1.16 - "not metadata", klass, obj); 1.17 + "not metadata", klass, (void *)obj); 1.18 *failures = true; 1.19 return; 1.20 } else if (!klass->is_klass()) { 1.21 gclog_or_tty->print_cr("klass "PTR_FORMAT" of object "PTR_FORMAT" " 1.22 - "not a klass", klass, obj); 1.23 + "not a klass", klass, (void *)obj); 1.24 *failures = true; 1.25 return; 1.26 } else { 1.27 @@ -971,7 +971,7 @@ 1.28 } 1.29 } 1.30 } else { 1.31 - gclog_or_tty->print_cr(PTR_FORMAT" no an oop", obj); 1.32 + gclog_or_tty->print_cr(PTR_FORMAT" no an oop", (void *)obj); 1.33 *failures = true; 1.34 return; 1.35 }