On Tue, 20 Oct 2026 06:30:42 GMT, Yasumasa Suenaga <[email protected]> wrote:

>> Valhalla introduced flattened value object, however SA cannot dump it into 
>> heapdump e.g. `jhsdb jmap --binaryheap`.
>> Actually HeapHprofBinWriter.java has following lines. Hence the user cannot 
>> check flattened object from heapdump generated by SA.
>> 
>> 
>>         case JVM_SIGNATURE_CLASS:
>>         case JVM_SIGNATURE_ARRAY: {
>>             if (field.isFlat()) {
>>               // FIXME - we don't handle flattened fields yet. Just treat 
>> them
>>               // as a null reference. See JDK-8381370.
>>               writeObjectID(null);
>> 
>> 
>> This PR addressed it.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Yasumasa Suenaga has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Use getFieldHolder() rather than getKlass()

Heap dumper in HotSpot would defer dump flattened objects, and would give 
sequential ID. This PR follows its manner.

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

PR Comment: https://git.openjdk.org/jdk/pull/33395#issuecomment-6304796412

Reply via email to