Integrated: 8376703: Some coding in libjimage seems to be not called at all or not called from PRODUCT code

Matthias Baesken mbaesken at openjdk.org
Mon Feb 2 18:53:27 UTC 2026


On Fri, 30 Jan 2026 09:30:14 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> libjimage has a few unused functions/methods; those are listed when logging elimination with  -Wl,--gc-sections -Wl,--print-gc-sections .
> We could remove them (or with if are still needed for completeness  put them into  #if 0 ) to reduce lib size on Linux and AIX.
> On Windows and macOS it seems the compiler/linker default settings are good enough to eliminate the code.

This pull request has now been integrated.

Changeset: 8023c416
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/8023c41690aee648eef800b69e517136e1cd062c
Stats:     73 lines in 5 files changed: 0 ins; 69 del; 4 mod

8376703: Some coding in libjimage seems to be not called at all or not called from PRODUCT code

Reviewed-by: alanb, rriggs

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

PR: https://git.openjdk.org/jdk/pull/29502


More information about the core-libs-dev mailing list