Merge pull request #18200 from adriadam10/fix/main-job-manager-spin-flake
fix(main): more quietest-of attempts in guest_job_manager_worker_spin
This commit is contained in:
1 file changed
+1
-1
@@ -695,7 +695,7 @@ static SpinSample MeasureWorkerSpin(std::uint32_t spin, std::uint32_t rounds, bo
|
||||
|
||||
static SpinSample QuietestWorkerSpin(std::uint32_t spin, std::uint32_t rounds, bool pending) {
|
||||
auto best = MeasureWorkerSpin(spin, rounds, pending);
|
||||
for (int attempt = 1; attempt < 3; ++attempt) {
|
||||
for (int attempt = 1; attempt < 7; ++attempt) {
|
||||
const auto sample = MeasureWorkerSpin(spin, rounds, pending);
|
||||
if (sample.consumed < best.consumed) {
|
||||
best = sample;
|
||||
|
||||
Reference in new issue
Block a user