8263721: Unify oop casting

Reviewed-by: kbarrett, coleenp
This commit is contained in:
Stefan Karlsson 2021-03-24 10:28:38 +00:00
parent 329697b02e
commit a79f095697
90 changed files with 248 additions and 249 deletions

View file

@ -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);