RFR: 8351542: LIBMANAGEMENT_OPTIMIZATION remove special optimization settings [v3]

Erik Joelsson erikj at openjdk.org
Tue Mar 11 16:02:00 UTC 2025


On Tue, 11 Mar 2025 15:19:24 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> > Was this always redundant, and does removing it make no change to current build options?
> > If so, great, let's remove the useless makefile lines.
> 
> There was a bit of discussion before in the thread https://mail.openjdk.org/pipermail/build-dev/2025-March/049419.html ' LIBMANAGEMENT_OPTIMIZATION special settings on Linux with debug symbols' and the outcome was that removing makes sense.

My conclusion in that thread was that [JDK-7071907](https://bugs.openjdk.org/browse/JDK-7071907) introduced this (for a number of libraries). Before that change, these libraries were built with optimization HIGH, and after, because we (Oracle and I assume most other distributors) always build with debug symbols enabled, the optimization level for these libraries was de facto changed to LOW. This PR would revert that, so it does indeed change how the build behaves. There is at least some historic precedent for changing it this way, even if it was 13 years ago.

I think what Kevin is after is having this explanation made clear in the bug and PR description so that it's made clear what the change is and intends to do.

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

PR Comment: https://git.openjdk.org/jdk/pull/23966#issuecomment-2714883676


More information about the build-dev mailing list