Skip to content

Commit

Permalink
8272417: ZGC: fastdebug build crashes when printing ClassLoaderData
Browse files Browse the repository at this point in the history
Backport-of: 741f58c18c3dc49c5e1b793e411d8479770f2772
  • Loading branch information
Alexey Pavlyutkin authored and Yuri Nesterenko committed Aug 23, 2022
1 parent e3c178d commit 2796eca
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/hotspot/share/classfile/classLoaderData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -968,11 +968,13 @@ void ClassLoaderData::print_on(outputStream* out) const {
out->print_cr(" - keep alive %d", _keep_alive);
out->print (" - claim ");
switch(_claim) {
case _claim_none: out->print_cr("none"); break;
case _claim_finalizable:out->print_cr("finalizable"); break;
case _claim_strong: out->print_cr("strong"); break;
case _claim_other: out->print_cr("other"); break;
default: ShouldNotReachHere();
case _claim_none: out->print_cr("none"); break;
case _claim_finalizable: out->print_cr("finalizable"); break;
case _claim_strong: out->print_cr("strong"); break;
case _claim_other: out->print_cr("other"); break;
case _claim_other | _claim_finalizable: out->print_cr("other and finalizable"); break;
case _claim_other | _claim_strong: out->print_cr("other and strong"); break;
default: ShouldNotReachHere();
}
out->print_cr(" - handles %d", _handles.count());
out->print_cr(" - dependency count %d", _dependency_count);
Expand Down

1 comment on commit 2796eca

@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.