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

Thomas Stuefe stuefe at openjdk.org
Tue Jan 14 14:27:45 UTC 2025


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

> 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.

They are not so many as one would think, and it is a work that could be done gradually. E.g. first create a PreInit function that gets called at the first invocation of CreateJavaVM - or even via its own global RAII object. Then, move things there one by one as one encounters them doing other fixes.

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

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


More information about the hotspot-runtime-dev mailing list