mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8148639: Some MethodCounter fields can be excluded when not including C2
Removed _interpreter_invocation_count and _interpreter_throwout_count fields for C1 Reviewed-by: kvn, coleenp
This commit is contained in:
parent
755b6af36e
commit
fbe049838a
8 changed files with 83 additions and 16 deletions
|
@ -632,9 +632,11 @@ BytecodeInterpreter::run(interpreterState istate) {
|
|||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue