RFR: 8150720: Cleanup code around PrintOptoStatistics

Claes Redestad claes.redestad at oracle.com
Fri Feb 26 11:40:27 UTC 2016


src/share/vm/opto/parse1.cpp currently defines a number of global 
counters that is used to collect some statistics. Some of these counters 
are incremented in product builds, but ever only displayed in 
non-product builds if run with -XX:+PrintOptoStatistics.

This patch masks such counters from product builds, removes a few 
counters that were never read, fixes an issue with implicit_null_throws 
which was never incremented in current code (seems it was moved to 
SharedRuntime a long time ago without updating print_statistics) and 
removes an unused enum (InlineStyle):

webrev: http://cr.openjdk.java.net/~redestad/8150720/webrev.00/
bug: https://bugs.openjdk.java.net/browse/JDK-8150720

Testing: RBT --test hotspot/test/:hotspot_all, manual verification that 
-XX:+PrintOptoStatistics prints out a count for implicit NPE's thrown


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20160226/82528a03/attachment.html>

More information about the hotspot-compiler-dev mailing list