JDK-8312136 : Modify runtime/ErrorHandling/TestDwarf.java to split dwarf and decoder testing
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-07-17
  • Updated: 2024-01-18
  • Resolved: 2023-09-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21 JDK 22
21.0.3-oracleFixed 22 b17Fixed
Related Reports
Relates :  
Description
From JDK-8305489

Update TestDwarf to only test the source information (it now assumes that the decoder is always able to find a method name). However, it would still be nice to have such a decoder test, so maybe we can split TestDwarf into a DWARF only and a decoder only test and problemlist the latter.

... fix the misleading exception message in the test
Comments
Fix request [21u] I backport this for parity with 21.0.3-oracle. No risk, only a test change. Don't need the related issue, that just motivated the test improvement. Clean backport. Test passes. SAP nightly testing passed.
18-01-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/185 Date: 2024-01-17 13:49:00 +0000
17-01-2024

Changeset: e2e8e8e2 Author: David Holmes <dholmes@openjdk.org> Date: 2023-09-25 23:42:17 +0000 URL: https://git.openjdk.org/jdk/commit/e2e8e8e210ea9a7a9d901a1da729551714015d04
25-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15895 Date: 2023-09-25 04:14:40 +0000
25-09-2023

The new error message (as test on linux-x86 in GHA) is: java.lang.RuntimeException: Could not find decoded method signature in "V [libjvm.so+0x8f3651] (debug.cpp:271)" at jdk.test.lib.Asserts.fail(Asserts.java:594) at TestDwarf.checkMissingElement(TestDwarf.java:211) at TestDwarf.runAndCheck(TestDwarf.java:169) at TestDwarf.test(TestDwarf.java:114) at TestDwarf.main(TestDwarf.java:101) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1570)
25-09-2023