Skip to content

Commit

Permalink
Fix the assertion count
Browse files Browse the repository at this point in the history
  • Loading branch information
hez2010 committed Dec 9, 2024
1 parent 4298c14 commit dc8e022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/jit/assertionprop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ void Compiler::optAssertionInit(bool isLocalProp)
}
else
{
optMaxAssertionCount = (AssertionIndex)min(maxTrackedLocals, ((3 * lvaTrackedCount / 128) + 1) * 64);
optMaxAssertionCount = (AssertionIndex)(min(maxTrackedLocals, lvaTrackedCount) * 3 / 128 + 1) * 64;
}
}
else
Expand Down

0 comments on commit dc8e022

Please sign in to comment.