Navigation Menu

Skip to content

Commit

Permalink
8267972: Inline cache cleaning is not monotonic
Browse files Browse the repository at this point in the history
Reviewed-by: vlivanov, kvn
  • Loading branch information
fisk committed Jun 7, 2021
1 parent 6d1f3ac commit 5ebd419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/code/compiledIC.cpp
Expand Up @@ -515,7 +515,7 @@ void CompiledIC::compute_monomorphic_entry(const methodHandle& method,
CompiledMethod* method_code = method->code();

address entry = NULL;
if (method_code != NULL && method_code->is_in_use()) {
if (method_code != NULL && method_code->is_in_use() && !method_code->is_unloading()) {
assert(method_code->is_compiled(), "must be compiled");
// Call to compiled code
//
Expand Down Expand Up @@ -641,7 +641,7 @@ void CompiledStaticCall::set(const StaticCallInfo& info) {
void CompiledStaticCall::compute_entry(const methodHandle& m, bool caller_is_nmethod, StaticCallInfo& info) {
CompiledMethod* m_code = m->code();
info._callee = m;
if (m_code != NULL && m_code->is_in_use()) {
if (m_code != NULL && m_code->is_in_use() && !m_code->is_unloading()) {
info._to_interpreter = false;
info._entry = m_code->verified_entry_point();
} else {
Expand Down

1 comment on commit 5ebd419

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.