Skip to content

Commit

Permalink
8332720: ubsan: instanceKlass.cpp:3550:76: runtime error: member call…
Browse files Browse the repository at this point in the history
… on null pointer of type 'struct Array'

Backport-of: e19a421c30534566ba0dea0fa84f812ebeecfc87
  • Loading branch information
MBaesken committed Jun 10, 2024
1 parent e55dd27 commit aeccc4e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/hotspot/share/oops/instanceKlass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3588,11 +3588,13 @@ void InstanceKlass::print_on(outputStream* st) const {
}
}
st->print(BULLET"method ordering: "); method_ordering()->print_value_on(st); st->cr();
st->print(BULLET"default_methods: "); default_methods()->print_value_on(st); st->cr();
if (Verbose && default_methods() != nullptr) {
Array<Method*>* method_array = default_methods();
for (int i = 0; i < method_array->length(); i++) {
st->print("%d : ", i); method_array->at(i)->print_value(); st->cr();
if (default_methods() != nullptr) {
st->print(BULLET"default_methods: "); default_methods()->print_value_on(st); st->cr();
if (Verbose) {
Array<Method*>* method_array = default_methods();
for (int i = 0; i < method_array->length(); i++) {
st->print("%d : ", i); method_array->at(i)->print_value(); st->cr();
}
}
}
if (default_vtable_indices() != nullptr) {
Expand Down

1 comment on commit aeccc4e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.