Skip to content

Commit

Permalink
8325681: C2 inliner rejects to inline a deeper callee because the met…
Browse files Browse the repository at this point in the history
…hoddata of caller is immature.
  • Loading branch information
Xin Liu committed Feb 20, 2024
1 parent 8765b17 commit 5bcd530
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/share/ci/ciMethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,8 @@ int ciMethod::check_overflow(int c, Bytecodes::Code code) {
ciCallProfile ciMethod::call_profile_at_bci(int bci) {
ResourceMark rm;
ciCallProfile result;
if (method_data() != nullptr && method_data()->is_mature()) {
// take CounterData regardless of maturity.
if (method_data() != nullptr) {
ciProfileData* data = method_data()->bci_to_data(bci);
if (data != nullptr && data->is_CounterData()) {
// Every profiled call site has a counter.
Expand Down

0 comments on commit 5bcd530

Please sign in to comment.