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).
-------------
Commit messages:
- 8381370: SA is not writing out flattened fields to the hprof file
Changes: https://git.openjdk.org/jdk/pull/33395/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33395&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8381370
Stats: 323 lines in 4 files changed: 286 ins; 0 del; 37 mod
Patch: https://git.openjdk.org/jdk/pull/33395.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/33395/head:pull/33395
PR: https://git.openjdk.org/jdk/pull/33395