8313752: InstanceKlassFlags::print_on doesn't print the flag names
Reviewed-by: stuefe, shade, coleenp
This commit is contained in:
parent
d3b578f1c9
commit
735b16a696
src/hotspot/share/oops
test/hotspot/jtreg/runtime/CommandLine
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user