JDK-8334866 : Improve Speed of ElfDecoder source search
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-06-24
  • Updated: 2025-07-01
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.
Other
tbdUnresolved
Related Reports
Relates :  
Description
ElfDecoder source search (dwarf scanning) is really slow. My preliminary perf analysis suggests we spend ~40% in file reads. 

Source search is used during call stack printing when we crash and write the hs-err file, and for NMT detail reports. Especially for the former case speed is important. VMs must finish writing the error log quickly in order for the customer to be able to restart the java service. That is why we limit error log printing time (ErrorLogTimeout).

The task is to analyze performance more in depth and to check if we can improve this (e.g. by caching somewhere).