RFR: 8349638: Build libjdwp with SIZE optimization

Matthias Baesken mbaesken at openjdk.org
Wed Feb 12 08:33:11 UTC 2025


On Wed, 12 Feb 2025 08:05:30 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

> > LIBJDWP is currently built with optimization level LOW.
> 
> Yes, but I'm still now sure why it wasn't always built with HIGH. Is there a reason for focusing on footprint here? What is the footprint different between HIGH and LOW?

I tested various jdk native libs that are currently compiled with LOW , how they do with SIZE.
For some of those libs the size reduction is not very good, but for some it is 10 or 20 % .
So I focused on those that are compiled currently with LOW and might do better with SIZE.

I can test with HIGH instead of LOW, but I have for those JDK native libs usually no benchmarks showing any improvements,
For SIZE it is possible to show an improvement (in size) if there is one (or the other way around, for some libs it is easy to show that they do pretty much the same with SIZE and LOW).

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

PR Comment: https://git.openjdk.org/jdk/pull/23563#issuecomment-2652979995


More information about the build-dev mailing list