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 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)
- links to
-
Review(master)
openjdk/jdk/29449