RFR: 8346433: Cannot use DllMain in hotspot for static builds

Magnus Ihse Bursie ihse at openjdk.org
Tue Jan 14 14:13:43 UTC 2025


On Tue, 14 Jan 2025 14:05:05 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Hmm, I don't think os::init is early enough.

Even if we accept that for static builds, we will not get the same debug coverage as for normal builds? 

Static builds are still a very specialized target, and is unlikely to ever become a norm. I think for the use case, having certain restrictions compared to a normal, dynamic build is perfectly acceptable. 

Also, as long as we can't even build and start a static launcher on Windows, there is no way for us to test it to figure out if there are other startup issues at hand. Reading through the entire hotspot code base and try to look for potential candidates of startup ordering indeterminism does not sound like a feasible project to me.

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

PR Comment: https://git.openjdk.org/jdk/pull/22793#issuecomment-2590022502


More information about the hotspot-runtime-dev mailing list