--- a/hotspot/src/share/vm/interpreter/bytecodeInterpreter.cpp Mon Mar 28 21:21:41 2016 +0800
+++ b/hotspot/src/share/vm/interpreter/bytecodeInterpreter.cpp Wed Mar 30 09:52:02 2016 -0700
@@ -632,9 +632,11 @@
if (_compiling) {
MethodCounters* mcs;
GET_METHOD_COUNTERS(mcs);
+#if COMPILER2_OR_JVMCI
if (ProfileInterpreter) {
METHOD->increment_interpreter_invocation_count(THREAD);
}
+#endif
mcs->invocation_counter()->increment();
if (mcs->invocation_counter()->reached_InvocationLimit(mcs->backedge_counter())) {
CALL_VM((void)InterpreterRuntime::frequency_counter_overflow(THREAD, NULL), handle_exception);