< prev index next >

src/share/vm/interpreter/bytecodeInterpreter.cpp

Print this page

        

@@ -630,13 +630,15 @@
       // count invocations
       assert(initialized, "Interpreter not initialized");
       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);
           // We no longer retry on a counter overflow.
         }
< prev index next >