Skip to content

Commit adf92f0

Browse files
robcaslozArraying
authored andcommitted
8377799: [lworld] Diagnostic PrintFlatArrayLayout flag has no effect in product builds
Reviewed-by: phubner
1 parent 81acb62 commit adf92f0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/hotspot/share/oops/flatArrayKlass.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,9 @@ FlatArrayKlass::FlatArrayKlass(Klass* element_klass, Symbol* name, ArrayProperti
9292
}
9393
#endif // ASSERT
9494

95-
#ifndef PRODUCT
9695
if (PrintFlatArrayLayout) {
9796
print();
9897
}
99-
#endif
10098
}
10199

102100
FlatArrayKlass* FlatArrayKlass::allocate_klass(Klass* eklass, ArrayProperties props, LayoutKind lk, TRAPS) {
@@ -383,7 +381,6 @@ u2 FlatArrayKlass::compute_modifier_flags() const {
383381
}
384382

385383
void FlatArrayKlass::print_on(outputStream* st) const {
386-
#ifndef PRODUCT
387384
assert(!is_refArray_klass(), "Unimplemented");
388385
ResourceMark rm;
389386

@@ -404,7 +401,6 @@ void FlatArrayKlass::print_on(outputStream* st) const {
404401
st->print(" - element size %i ", elem_size);
405402
st->print("aligned layout size %i", 1 << layout_helper_log2_element_size(layout_helper()));
406403
st->cr();
407-
#endif //PRODUCT
408404
}
409405

410406
void FlatArrayKlass::print_value_on(outputStream* st) const {

0 commit comments

Comments
 (0)