src/share/vm/oops/oop.cpp

changeset 1100
c89f86385056
parent 631
d1605aabd0a1
child 1590
4e6abf09f540
equal deleted inserted replaced
1082:bd441136a5ce 1100:c89f86385056
1 /* 1 /*
2 * Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
63 } 63 }
64 } 64 }
65 65
66 void oopDesc::print_address_on(outputStream* st) const { 66 void oopDesc::print_address_on(outputStream* st) const {
67 if (PrintOopAddress) { 67 if (PrintOopAddress) {
68 st->print("{"); 68 st->print("{"INTPTR_FORMAT"}", this);
69 if (PrintOopAddress) {
70 st->print(INTPTR_FORMAT, this);
71 }
72 st->print("}");
73 } 69 }
74 } 70 }
75 71
76 void oopDesc::print() { print_on(tty); } 72 void oopDesc::print() { print_on(tty); }
77 73

mercurial