--- old/src/hotspot/share/runtime/java.cpp 2018-11-14 17:53:22.075360437 +0100 +++ new/src/hotspot/share/runtime/java.cpp 2018-11-14 17:53:13.653333880 +0100 @@ -365,6 +365,13 @@ } ThreadsSMRSupport::log_statistics(); + + extern unsigned long followed_by_equals; + extern unsigned long not_followed_by_equals; + unsigned long total = followed_by_equals + not_followed_by_equals; + tty->print_cr("acmp followed by equals: " JLONG_FORMAT " %f", followed_by_equals, ((float)followed_by_equals) / total); + tty->print_cr("acmp not followed by equals: " JLONG_FORMAT " %f", not_followed_by_equals, ((float)not_followed_by_equals) / total); + } #else // PRODUCT MODE STATISTICS @@ -412,6 +419,12 @@ } ThreadsSMRSupport::log_statistics(); + + extern unsigned long followed_by_equals; + extern unsigned long not_followed_by_equals; + unsigned long total = followed_by_equals + not_followed_by_equals; + tty->print_cr("acmp followed by equals: " JLONG_FORMAT " %f", followed_by_equals, ((float)followed_by_equals) / total); + tty->print_cr("acmp not followed by equals: " JLONG_FORMAT " %f", not_followed_by_equals, ((float)not_followed_by_equals) / total); } #endif