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

@ -351,7 +351,7 @@ void vframeArrayElement::unpack_on_stack(int caller_actual_parameters,
#ifndef PRODUCT
if (PrintDeoptimizationDetails) {
tty->print("Reconstructed expression %d (OBJECT): ", i);
oop o = (oop)(address)(*addr);
oop o = cast_to_oop((address)(*addr));
if (o == NULL) {
tty->print_cr("NULL");
} else {
@ -389,7 +389,7 @@ void vframeArrayElement::unpack_on_stack(int caller_actual_parameters,
#ifndef PRODUCT
if (PrintDeoptimizationDetails) {
tty->print("Reconstructed local %d (OBJECT): ", i);
oop o = (oop)(address)(*addr);
oop o = cast_to_oop((address)(*addr));
if (o == NULL) {
tty->print_cr("NULL");
} else {