1.1 --- a/src/share/vm/oops/instanceRefKlass.cpp Wed Sep 25 17:47:51 2013 +0200 1.2 +++ b/src/share/vm/oops/instanceRefKlass.cpp Thu Sep 26 10:25:02 2013 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -51,7 +51,7 @@ 1.11 T heap_oop = oopDesc::load_heap_oop(referent_addr); 1.12 debug_only( 1.13 if(TraceReferenceGC && PrintGCDetails) { 1.14 - gclog_or_tty->print_cr("InstanceRefKlass::oop_follow_contents " INTPTR_FORMAT, obj); 1.15 + gclog_or_tty->print_cr("InstanceRefKlass::oop_follow_contents " INTPTR_FORMAT, (void *)obj); 1.16 } 1.17 ) 1.18 if (!oopDesc::is_null(heap_oop)) { 1.19 @@ -62,7 +62,7 @@ 1.20 ref->InstanceKlass::oop_follow_contents(obj); 1.21 debug_only( 1.22 if(TraceReferenceGC && PrintGCDetails) { 1.23 - gclog_or_tty->print_cr(" Non NULL enqueued " INTPTR_FORMAT, obj); 1.24 + gclog_or_tty->print_cr(" Non NULL enqueued " INTPTR_FORMAT, (void *)obj); 1.25 } 1.26 ) 1.27 return; 1.28 @@ -70,7 +70,7 @@ 1.29 // treat referent as normal oop 1.30 debug_only( 1.31 if(TraceReferenceGC && PrintGCDetails) { 1.32 - gclog_or_tty->print_cr(" Non NULL normal " INTPTR_FORMAT, obj); 1.33 + gclog_or_tty->print_cr(" Non NULL normal " INTPTR_FORMAT, (void *)obj); 1.34 } 1.35 ) 1.36 MarkSweep::mark_and_push(referent_addr); 1.37 @@ -130,7 +130,7 @@ 1.38 T heap_oop = oopDesc::load_heap_oop(referent_addr); 1.39 debug_only( 1.40 if(TraceReferenceGC && PrintGCDetails) { 1.41 - gclog_or_tty->print_cr("InstanceRefKlass::oop_follow_contents " INTPTR_FORMAT, obj); 1.42 + gclog_or_tty->print_cr("InstanceRefKlass::oop_follow_contents " INTPTR_FORMAT, (void *)obj); 1.43 } 1.44 ) 1.45 if (!oopDesc::is_null(heap_oop)) { 1.46 @@ -142,7 +142,7 @@ 1.47 ref->InstanceKlass::oop_follow_contents(cm, obj); 1.48 debug_only( 1.49 if(TraceReferenceGC && PrintGCDetails) { 1.50 - gclog_or_tty->print_cr(" Non NULL enqueued " INTPTR_FORMAT, obj); 1.51 + gclog_or_tty->print_cr(" Non NULL enqueued " INTPTR_FORMAT, (void *)obj); 1.52 } 1.53 ) 1.54 return; 1.55 @@ -150,7 +150,7 @@ 1.56 // treat referent as normal oop 1.57 debug_only( 1.58 if(TraceReferenceGC && PrintGCDetails) { 1.59 - gclog_or_tty->print_cr(" Non NULL normal " INTPTR_FORMAT, obj); 1.60 + gclog_or_tty->print_cr(" Non NULL normal " INTPTR_FORMAT, (void *)obj); 1.61 } 1.62 ) 1.63 PSParallelCompact::mark_and_push(cm, referent_addr);