On Fri, 16 Oct 2026 21:07:56 GMT, Leonid Mesnik <[email protected]> wrote:

>> 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).
>
> Leonid Mesnik has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   removed unneeded annotations

Marked as reviewed by dsimms (Author).

-------------

PR Review: https://git.openjdk.org/jdk/pull/32845#pullrequestreview-5574958873

Reply via email to