RFR: 8371893: [macOS aarch64] use dead_strip linker option to reduce binary size

Chris Plummer cjplummer at openjdk.org
Thu Nov 20 17:23:47 UTC 2025


On Thu, 20 Nov 2025 15:51:55 GMT, Andrew Haley <aph at openjdk.org> wrote:

> > > On further consideration, I remembered that many of the helpers are debug-only, so that shouldn't be a problem
> > 
> > 
> > Thanks for looking into it. I can disable the dead_strip switch for the debug-builds, so it would not eliminate these helpers.
> 
> Right, but we'll need to make sure we don't remove the non-debug ones. We don't want to exclude stuff in `src/hotspot/share/utilities/debug.cpp` or explicit helpers in the back ends.

Most of the debug.cpp helpers are in product builds now. I think only pns() and pns2() are left out of product builds.

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

PR Comment: https://git.openjdk.org/jdk/pull/28319#issuecomment-3559202033


More information about the build-dev mailing list