RFR: 8376402: Dependencies::print_statistics() and AbstractClassHierarchyWalker::print_statistics() are not called from PRODUCT code
Matthias Baesken
mbaesken at openjdk.org
Tue Jan 27 14:09:07 UTC 2026
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)
-------------
Commit messages:
- JDK-8376402
Changes: https://git.openjdk.org/jdk/pull/29449/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29449&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8376402
Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/29449.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29449/head:pull/29449
PR: https://git.openjdk.org/jdk/pull/29449
More information about the hotspot-compiler-dev
mailing list