8219555: compiler/jvmci/compilerToVM/IsMatureTest.java fails with Unexpected isMature state for multiple times invoked method: expected false to equal true

Reviewed-by: kvn
This commit is contained in:
Igor Veresov 2021-03-08 18:01:27 +00:00
parent bf9b74d187
commit 1f9ed9059f
9 changed files with 34 additions and 46 deletions

View file

@ -1971,7 +1971,7 @@ void Method::clear_all_breakpoints() {
#endif // INCLUDE_JVMTI
int Method::invocation_count() {
int Method::invocation_count() const {
MethodCounters* mcs = method_counters();
MethodData* mdo = method_data();
if (((mcs != NULL) ? mcs->invocation_counter()->carry() : false) ||
@ -1983,7 +1983,7 @@ int Method::invocation_count() {
}
}
int Method::backedge_count() {
int Method::backedge_count() const {
MethodCounters* mcs = method_counters();
MethodData* mdo = method_data();
if (((mcs != NULL) ? mcs->backedge_counter()->carry() : false) ||