Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
/ jdk22u Public archive

Commit

Permalink
8323065: Unneccesary CodeBlob lookup in CompiledIC::internal_set_ic_d…
Browse files Browse the repository at this point in the history
…estination

Backport-of: eb9e754b3a439cc3ce36c2c9393bc8b250343844
  • Loading branch information
shipilev committed Jan 15, 2024
1 parent 3257d9d commit dfce95a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/share/code/compiledIC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,13 @@ void CompiledIC::internal_set_ic_destination(address entry_point, bool is_icstub
tty->cr();
}

#ifdef ASSERT
{
CodeBlob* cb = CodeCache::find_blob(_call->instruction_address());
assert(cb != nullptr && cb->is_compiled(), "must be compiled");
_call->set_destination_mt_safe(entry_point);
}
#endif
_call->set_destination_mt_safe(entry_point);

if (is_optimized() || is_icstub) {
// Optimized call sites don't have a cache value and ICStub call
Expand Down

1 comment on commit dfce95a

@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.