RFR: 8338768: Introduce runtime lookup to check for static builds [v2]
Julian Waters
jwaters at openjdk.org
Mon Sep 2 04:15:21 UTC 2024
On Mon, 2 Sep 2024 04:09:19 GMT, David Holmes <dholmes at openjdk.org> wrote:
> > This does make me wonder: What if the new method for checking if the VM was statically linked was inlined? Then the problem comes back yet again as the object files need to be recompiled once more. This is possible if Link Time Optimization is switched on, and I don't like the implication that LTO might be removed as a result just to make this work
>
> Wouldn't such link-time "inlining" only appear in the object code stored within the library, not in the original object file?
Ah, you're right, good catch. I got mixed up with the implementation details of different compilers there, sorry
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20666#issuecomment-2323778397
More information about the serviceability-dev
mailing list