mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8263721: Unify oop casting
Reviewed-by: kbarrett, coleenp
This commit is contained in:
parent
329697b02e
commit
a79f095697
90 changed files with 248 additions and 249 deletions
|
@ -38,7 +38,7 @@
|
|||
#include "utilities/macros.hpp"
|
||||
|
||||
void oopDesc::print_on(outputStream* st) const {
|
||||
klass()->oop_print_on(oop(this), st);
|
||||
klass()->oop_print_on(const_cast<oopDesc*>(this), st);
|
||||
}
|
||||
|
||||
void oopDesc::print_address_on(outputStream* st) const {
|
||||
|
@ -68,7 +68,7 @@ char* oopDesc::print_value_string() {
|
|||
}
|
||||
|
||||
void oopDesc::print_value_on(outputStream* st) const {
|
||||
oop obj = oop(this);
|
||||
oop obj = const_cast<oopDesc*>(this);
|
||||
if (java_lang_String::is_instance(obj)) {
|
||||
java_lang_String::print(obj, st);
|
||||
print_address_on(st);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue