Skip to content

Commit 2796eca

Browse files
Alexey PavlyutkinYuri Nesterenko
Alexey Pavlyutkin
authored and
Yuri Nesterenko
committedAug 23, 2022
8272417: ZGC: fastdebug build crashes when printing ClassLoaderData
Backport-of: 741f58c18c3dc49c5e1b793e411d8479770f2772
1 parent e3c178d commit 2796eca

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
 

‎src/hotspot/share/classfile/classLoaderData.cpp

+7-5
Original file line numberDiff line numberDiff line change
@@ -968,11 +968,13 @@ void ClassLoaderData::print_on(outputStream* out) const {
968968
out->print_cr(" - keep alive %d", _keep_alive);
969969
out->print (" - claim ");
970970
switch(_claim) {
971-
case _claim_none: out->print_cr("none"); break;
972-
case _claim_finalizable:out->print_cr("finalizable"); break;
973-
case _claim_strong: out->print_cr("strong"); break;
974-
case _claim_other: out->print_cr("other"); break;
975-
default: ShouldNotReachHere();
971+
case _claim_none: out->print_cr("none"); break;
972+
case _claim_finalizable: out->print_cr("finalizable"); break;
973+
case _claim_strong: out->print_cr("strong"); break;
974+
case _claim_other: out->print_cr("other"); break;
975+
case _claim_other | _claim_finalizable: out->print_cr("other and finalizable"); break;
976+
case _claim_other | _claim_strong: out->print_cr("other and strong"); break;
977+
default: ShouldNotReachHere();
976978
}
977979
out->print_cr(" - handles %d", _handles.count());
978980
out->print_cr(" - dependency count %d", _dependency_count);

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Aug 23, 2022

@openjdk-notifier[bot]
Please sign in to comment.