[lworld] SA test with hprof fails with --enable-valhalla

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: repo-valhalla
    • Component/s: hotspot
    • None


      serviceability/sa/TestHeapDumpForInvokeDynamic.java

      This test fails beause a field in the heap dump (dumped with hprof) isn't what it expects.

      heap written to lambdaHeapDump.bin

      Line: Dump file created Fri Feb 06 18:01:39 GMT 2026
      Line: Snapshot read, resolving...
      Line: Resolving 22509 objects...
      Line: WARNING: Failed to resolve object id 0xe0737438 for field NFS (signature L)
       LingeredApp stdout: [Hello
      Hello Hello
      false
      ];
       LingeredApp stderr: []
       LingeredApp exitValue = 0
      STDERR:
      java.lang.RuntimeException: assertFalse: expected false, was true
      at jdk.test.lib.Asserts.fail(Asserts.java:715)
      at jdk.test.lib.Asserts.assertFalse(Asserts.java:520)
      at jdk.test.lib.Asserts.assertFalse(Asserts.java:506)
      at jdk.test.lib.hprof.HprofParser.verifyParse(HprofParser.java:119)
      at jdk.test.lib.hprof.HprofParser.parse(HprofParser.java:108)
      at jdk.test.lib.hprof.HprofParser.parseAndVerify(HprofParser.java:59)
      at TestHeapDumpForInvokeDynamic.attachDumpAndVerify(TestHeapDumpForInvokeDynamic.java:75)
      at TestHeapDumpForInvokeDynamic.main(TestHeapDumpForInvokeDynamic.java:90)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1516)

            Assignee:
            Unassigned
            Reporter:
            Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: