mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
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:
parent
b71f3e7104
commit
38db1d1620
15 changed files with 73 additions and 39 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue