8344763: cpCache print_on doesn't handle nulls
Reviewed-by: matsaave
This commit is contained in:
parent
dc9a6ef610
commit
93d4ad4dd4
@ -829,10 +829,16 @@ oop ConstantPoolCache::appendix_if_resolved(ResolvedMethodEntry* method_entry) c
|
||||
void ConstantPoolCache::print_on(outputStream* st) const {
|
||||
st->print_cr("%s", internal_name());
|
||||
// print constant pool cache entries
|
||||
if (_resolved_field_entries != nullptr) {
|
||||
print_resolved_field_entries(st);
|
||||
}
|
||||
if (_resolved_method_entries != nullptr) {
|
||||
print_resolved_method_entries(st);
|
||||
}
|
||||
if (_resolved_indy_entries != nullptr) {
|
||||
print_resolved_indy_entries(st);
|
||||
}
|
||||
}
|
||||
|
||||
void ConstantPoolCache::print_resolved_field_entries(outputStream* st) const {
|
||||
for (int field_index = 0; field_index < resolved_field_entries_length(); field_index++) {
|
||||
|
Loading…
Reference in New Issue
Block a user