Skip to content

Commit

Permalink
Merge pull request #16406 from r30shah/fixBFIMismatch
Browse files Browse the repository at this point in the history
Fix bug while computing effective caller index
  • Loading branch information
jdmpapin authored Dec 2, 2022
2 parents 39bceb2 + fc47ec5 commit f665453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/compiler/runtime/J9Profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2408,9 +2408,9 @@ TR_CallSiteInfo::computeEffectiveCallerIndex(TR::Compilation *comp, TR::list<std

TR_InlinedCallSite *cursor = &_callSites[i];
auto itr = callStack.begin(), end = callStack.end();
auto next = itr;
if (itr != end)
{
auto next = itr;
next++;
while (cursor && next != end)
{
Expand All @@ -2431,7 +2431,7 @@ TR_CallSiteInfo::computeEffectiveCallerIndex(TR::Compilation *comp, TR::list<std

// both have terminated at the same time means we have a match for our callstack fragment
// so return it
if (itr == end && cursor == NULL)
if (next == end && cursor == NULL)
{
effectiveCallerIndex = i;
return true;
Expand Down

0 comments on commit f665453

Please sign in to comment.