mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8313752: InstanceKlassFlags::print_on doesn't print the flag names
Backport-of: 735b16a696
This commit is contained in:
committed by
Vitaly Provodin
parent
8aa7819a6e
commit
dce35c74cc
@@ -29,7 +29,7 @@
|
||||
|
||||
void ConstMethodFlags::print_on(outputStream* st) const {
|
||||
#define CM_PRINT(name, ignore) \
|
||||
if (name()) st->print(" " #name " ");
|
||||
if (name()) st->print(#name " ");
|
||||
CM_FLAGS_DO(CM_PRINT)
|
||||
#undef CM_PRINT
|
||||
}
|
||||
|
||||
@@ -32,11 +32,10 @@
|
||||
|
||||
void InstanceKlassFlags::print_on(outputStream* st) const {
|
||||
#define IK_FLAGS_PRINT(name, ignore) \
|
||||
if (name()) st->print(" ##name ");
|
||||
if (name()) st->print(#name " ");
|
||||
IK_FLAGS_DO(IK_FLAGS_PRINT)
|
||||
IK_STATUS_DO(IK_FLAGS_PRINT)
|
||||
#undef IK_FLAGS_PRINT
|
||||
st->cr();
|
||||
}
|
||||
|
||||
#if INCLUDE_CDS
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
void MethodFlags::print_on(outputStream* st) const {
|
||||
#define M_PRINT(name, ignore) \
|
||||
if (name()) st->print(" " #name " ");
|
||||
if (name()) st->print(#name " ");
|
||||
M_STATUS_DO(M_PRINT)
|
||||
#undef M_PRINT
|
||||
}
|
||||
|
||||
@@ -56,5 +56,8 @@ public class PrintClasses {
|
||||
output = new OutputAnalyzer(pb.start());
|
||||
output.shouldContain("instance size");
|
||||
output.shouldContain(PrintClasses.class.getSimpleName());
|
||||
|
||||
// Test for previous bug in misc flags printing
|
||||
output.shouldNotContain("##name");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user