8208399: Metadata methods print_(value_)on_maybe_null() compare 'this' to NULL

Add Method* parameter and make method static to avoid 'this' comparison with NULL

Reviewed-by: lfoltan, gziemski, coleenp
This commit is contained in:
Harold Seigel 2018-07-31 09:55:09 -04:00
parent c9d506055c
commit 7d04a31fc8
3 changed files with 10 additions and 17 deletions

View file

@ -2346,7 +2346,7 @@ void nmethod::print_recorded_metadata() {
if (m == (Metadata*)Universe::non_oop_word()) {
tty->print("non-metadata word");
} else {
m->print_value_on_maybe_null(tty);
Metadata::print_value_on_maybe_null(tty, m);
}
tty->cr();
}