RFR: 8351491: Add info from release file to hserr file [v2]

David Holmes dholmes at openjdk.org
Wed Apr 2 02:14:31 UTC 2025


On Wed, 26 Mar 2025 15:11:06 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> The release file of the JDK image contains useful info, for example the SOURCE used to built this image e.g.
>> SOURCE=".:git:21af8c7e7405"
>> Also the MODULES list is probably useful to have.
>> Add this info (or the complete content of the release file) to the hs_err files.
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   address Windows issues

Reading from /proc and reading a file from disk are a bit different I think.

> Could we maybe load the release file with a bit of delay to avoid even a small hit on startup performance?

That may be possible: a one-of "periodic task" for the Watcher thread. If it is not loaded by the time we crash (ie when crashing very early) then I don't think its absence will be missed.

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

PR Comment: https://git.openjdk.org/jdk/pull/24244#issuecomment-2771106999


More information about the hotspot-dev mailing list