mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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
|
@ -264,6 +264,7 @@ class Method : public Metadata {
|
|||
int highest_osr_comp_level() const;
|
||||
void set_highest_osr_comp_level(int level);
|
||||
|
||||
#if defined(COMPILER2) || INCLUDE_JVMCI
|
||||
// Count of times method was exited via exception while interpreting
|
||||
void interpreter_throwout_increment(TRAPS) {
|
||||
MethodCounters* mcs = get_method_counters(CHECK);
|
||||
|
@ -271,6 +272,7 @@ class Method : public Metadata {
|
|||
mcs->interpreter_throwout_increment();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
int interpreter_throwout_count() const {
|
||||
MethodCounters* mcs = method_counters();
|
||||
|
@ -407,11 +409,13 @@ class Method : public Metadata {
|
|||
return (mcs == NULL) ? 0 : mcs->interpreter_invocation_count();
|
||||
}
|
||||
}
|
||||
#if defined(COMPILER2) || INCLUDE_JVMCI
|
||||
int increment_interpreter_invocation_count(TRAPS) {
|
||||
if (TieredCompilation) ShouldNotReachHere();
|
||||
MethodCounters* mcs = get_method_counters(CHECK_0);
|
||||
return (mcs == NULL) ? 0 : mcs->increment_interpreter_invocation_count();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef PRODUCT
|
||||
int compiled_invocation_count() const { return _compiled_invocation_count; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue