RFR: 8375311: Some builds are missing debug helpers
Andrew Haley
aph at openjdk.org
Wed Jan 14 18:08:54 UTC 2026
On Wed, 14 Jan 2026 15:32:28 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> But potentially ltgc or similar size-optimizing options could be enabled on other platforms too, and not only debug builds could lose the debug helpers (however in non-debug builds they might be not that important).
I've had to debug non-debug builds before. It's hard, but not impossible.
We should think pretty carefully about losing things useful to debugging for the sake of somewhat smaller binaries. In particular, `dump()` and `print()` virtual functions are often used.
We might still decide to use LTO in some way, but any decision needs a full discussion among HotSpot maintainers.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29232#issuecomment-3750919941
More information about the hotspot-dev
mailing list