hotspot/src/share/vm/interpreter/bytecodeInterpreter.cpp
changeset 37272 c427db4ea8c4
parent 36508 5f9eee6b383b
child 37296 613278eb2a1e
--- 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);