Uh oh!
There was an error while loading. Please reload this page.
Fixed the yp_spin_count_unit to be a factor of the original_spin_count_unit rather than a continually increasing value - #68879
Conversation
…t_unit rather than a continually increasing value
ghost
commented
May 4, 2022
Tagging subscribers to this area: @dotnet/gc Issue DetailsSummaryThis PR is to address #68839 where it's clear that The fix is to store the original spin count unit and use that value to set the
|
Maoni0
commented
May 5, 2022
I would put a cap on the check too 'cause we don't want to spin too much -
|
kouvel
commented
May 5, 2022
Ah I seem to have missed this issue in my other change. Thanks for fixing it @mrsharm! |
Summary
This PR is to address #68839 where it's clear that
SetYieldProcessorScalingFactoris called multiple times thereby increasing the value ofyp_spin_count_unitand as a result the spin counts are monotonically increasing each timeSetYieldProcessorScalingFactoris called; this function was previously assumed to be called only once but that changed with the following PR: #55295.The fix is to store the original spin count unit and use that value to set the
yp_spin_count_unitrather than adjusting the value based on the lastyp_spin_count_unit.