equal
deleted
inserted
replaced
630 // count invocations |
630 // count invocations |
631 assert(initialized, "Interpreter not initialized"); |
631 assert(initialized, "Interpreter not initialized"); |
632 if (_compiling) { |
632 if (_compiling) { |
633 MethodCounters* mcs; |
633 MethodCounters* mcs; |
634 GET_METHOD_COUNTERS(mcs); |
634 GET_METHOD_COUNTERS(mcs); |
|
635 #if COMPILER2_OR_JVMCI |
635 if (ProfileInterpreter) { |
636 if (ProfileInterpreter) { |
636 METHOD->increment_interpreter_invocation_count(THREAD); |
637 METHOD->increment_interpreter_invocation_count(THREAD); |
637 } |
638 } |
|
639 #endif |
638 mcs->invocation_counter()->increment(); |
640 mcs->invocation_counter()->increment(); |
639 if (mcs->invocation_counter()->reached_InvocationLimit(mcs->backedge_counter())) { |
641 if (mcs->invocation_counter()->reached_InvocationLimit(mcs->backedge_counter())) { |
640 CALL_VM((void)InterpreterRuntime::frequency_counter_overflow(THREAD, NULL), handle_exception); |
642 CALL_VM((void)InterpreterRuntime::frequency_counter_overflow(THREAD, NULL), handle_exception); |
641 // We no longer retry on a counter overflow. |
643 // We no longer retry on a counter overflow. |
642 } |
644 } |