LIBMANAGEMENT_OPTIMIZATION special settings on Linux with debug symbols

Baesken, Matthias matthias.baesken at sap.com
Mon Mar 10 12:02:28 UTC 2025


Hello, while looking at the JDK native lib optimization levels, I noticed this special setting :

make/modules/java.management/Lib.gmk

ifeq ($(call isTargetOs, linux)+$(COMPILE_WITH_DEBUG_SYMBOLS), true+true)
   LIBMANAGEMENT_OPTIMIZATION := LOW
endif

Why is it there ?
I removed it  in out internal tests and saw no issues.
Do we still need it these days ? Was it maybe done for very old  gcc versions ?


Best regards, Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20250310/18720134/attachment-0001.htm>


More information about the build-dev mailing list