Integrated: 8376402: Dependencies::print_statistics() and AbstractClassHierarchyWalker::print_statistics() are not called from PRODUCT code
Matthias Baesken
mbaesken at openjdk.org
Wed Jan 28 16:34:36 UTC 2026
On Tue, 27 Jan 2026 13:58:35 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> Dependencies::print_statistics() and AbstractClassHierarchyWalker::print_statistics() are not called from PRODUCT code but seems they still end up in the product build JVM, at least when using standard build settings.
> (This can be observed when enabling link time gc and verbose info printing - in this case the methods are eliminated).
>
> linuxx86_64
> product build without those methods
>
> ls -alL images/jdk/lib/server/libjvm.so
> size 2.859.5144
>
>
> unchanged product build :
>
> ls -alL images/jdk/lib/server/libjvm.so
> size 2.859.9464
>
>
> (so we see a little size difference)
This pull request has now been integrated.
Changeset: 0e2e66be
Author: Matthias Baesken <mbaesken at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0e2e66be2423335002a53d887df35d2348a3ec9f
Stats: 6 lines in 2 files changed: 2 ins; 0 del; 4 mod
8376402: Dependencies::print_statistics() and AbstractClassHierarchyWalker::print_statistics() are not called from PRODUCT code
Reviewed-by: azafari, chagedorn
-------------
PR: https://git.openjdk.org/jdk/pull/29449
More information about the hotspot-compiler-dev
mailing list