Skip to content

Fixes for task_bench - #7359

Merged
Amaury Chamayou (achamayou) merged 5 commits into
microsoft:mainfrom
eddyashton:fixes_for_task_bench
Oct 16, 2025
Merged

Fixes for task_bench#7359
Amaury Chamayou (achamayou) merged 5 commits into
microsoft:mainfrom
eddyashton:fixes_for_task_bench

Conversation

@eddyashton

Copy link
Copy Markdown
Member

Following #7357 (and #7329).

ASAN caught trivial stack corruption from the dequeue contention tests, because we flushed a single task rather than all (re-using a global object, not asserting anything interesting at the end of a benchmark test). This stack corruption resulted in other tests attempting to create too many threads, and a system error.

Relatedly, I was seeing rare but confounding instances of the merge sort benchmark failing because the resulting data wasn't sorted, but only in Debug and ASAN. This was because of a hard timeout in the flushing util function they used - finishing after 5s rather than when the task was truly complete. Unused timeout removed, tests now pass under ASAN.

@eddyashton
Eddy Ashton (eddyashton) requested a review from a team as a code owner October 15, 2025 14:57
@achamayou
Amaury Chamayou (achamayou) added this pull request to the merge queue Oct 16, 2025
Merged via the queue into microsoft:main with commit 71e7eb8 Oct 16, 2025
21 checks passed
@achamayou
Amaury Chamayou (achamayou) deleted the fixes_for_task_bench branch October 16, 2025 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants