The flattened arrays might have different layout an thus different size. So it makes sense to update GC.class_histogram report to reflect this.
The layout is not printed for plain reference-based arrays. Here is the example of new output: 23: 1 8208 [LClassHistogramFlattenedArrayTest$TestClassNA; [flat, nullable, atomic] 40: 1 4112 [LClassHistogramFlattenedArrayTest$TestClassNRA; [flat, null-restricted, atomic] 41: 1 4112 [LClassHistogramFlattenedArrayTest$TestClassNRNA; [flat, null-restricted, non-atomic] For plain reference arrays it should be the same, like: 42: 1 4112 [LClassHistogramFlattenedArrayTest$TestClass; --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - removed ledtover line - 8389457: GC.class_histogram reports duplicate rows for refined array layouts Changes: https://git.openjdk.org/jdk/pull/32845/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32845&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8389457 Stats: 106 lines in 3 files changed: 101 ins; 0 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/32845.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32845/head:pull/32845 PR: https://git.openjdk.org/jdk/pull/32845
