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

Matthias Baesken mbaesken at openjdk.org
Thu Apr 3 08:24:08 UTC 2025


On Fri, 28 Mar 2025 12:21:42 GMT, David Holmes <dholmes at openjdk.org> wrote:

> I'm not convinced the startup hit is justified - some filesystems are relatively very slow.

I thought about it a little more ;  you read the little release file from the JDK image itself.
You read from the same file system location e.g. the libjvm.so (and other stuff that is mandatory when starting up the JVM).
The libjvm is (depending on OS/build options used)  7.000 or 10.000  times larger than the release file.
On my example build (Linux x86_64) e.g.   4K  vs 28M .  So the load should not really add up much .

If we really care that much about those few bytes , we should invest WAY more into size-reduction of the JDK image (especially the early loaded files).

(not saying that I don't like the PeriodicTask idea,  I'll try this out too)

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

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


More information about the hotspot-dev mailing list