mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8146947
: Remove PrintOopAddress rather than converting to UL
Deprecated PrintOopAddress and made functionality default Reviewed-by: coleenp, stefank
This commit is contained in:
parent
cd3f80324f
commit
0f7f8e05ab
7 changed files with 14 additions and 28 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -44,9 +44,8 @@ void oopDesc::print_on(outputStream* st) const {
|
|||
}
|
||||
|
||||
void oopDesc::print_address_on(outputStream* st) const {
|
||||
if (PrintOopAddress) {
|
||||
st->print("{" INTPTR_FORMAT "}", p2i(this));
|
||||
}
|
||||
st->print("{" INTPTR_FORMAT "}", p2i(this));
|
||||
|
||||
}
|
||||
|
||||
void oopDesc::print() { print_on(tty); }
|
||||
|
@ -76,7 +75,7 @@ void oopDesc::print_value_on(outputStream* st) const {
|
|||
st->print("NULL");
|
||||
} else if (java_lang_String::is_instance(obj)) {
|
||||
java_lang_String::print(obj, st);
|
||||
if (PrintOopAddress) print_address_on(st);
|
||||
print_address_on(st);
|
||||
} else {
|
||||
klass()->oop_print_value_on(obj, st);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue