8202171: Some oopDesc functions compare this with NULL

Add Method* parameter and made verify* methods static to avoid 'this' comparison with NULL, Added NULL checks before calling print_on() methods.

Reviewed-by: kbarrett, coleenp
This commit is contained in:
Harold Seigel 2018-07-31 14:24:10 -04:00
parent b71f3e7104
commit 38db1d1620
15 changed files with 73 additions and 39 deletions

View file

@ -2332,7 +2332,11 @@ void nmethod::print_recorded_oops() {
if (o == (oop)Universe::non_oop_word()) {
tty->print("non-oop word");
} else {
o->print_value();
if (o != NULL) {
o->print_value();
} else {
tty->print_cr("NULL");
}
}
tty->cr();
}