RFR: 8338768: Introduce runtime lookup to check for static builds [v2]

Julian Waters jwaters at openjdk.org
Thu Aug 22 05:30:02 UTC 2024


On Thu, 22 Aug 2024 02:46:34 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Sorry but I don't understand the point of changing build-time constructs using `ifdef STATIC_BUILD` into what appear to be runtime checks, but the result of which is already determined at build time. These are not really runtime checks.

I believe the new methods are for checking whether the JDK was statically linked or not, but I half agree with your point. The change to using the new methods instead of preprocessor checks don't seem to really do anything. Maybe the new methods can be kept alongside the preprocessor checks

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

PR Comment: https://git.openjdk.org/jdk/pull/20666#issuecomment-2303813593


More information about the core-libs-dev mailing list