-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#6938 sched migrate: Make replay record_index atomic (#6995)
PR #6985 removed the global sched_lock_ which used to synchronize access to other output's record_index field, leaving a data race (affecting only the rough timing across outputs where an output waits if gets ahead of other outputs' timestamps). Since only the index and not the recorded contents need synchronization, we use an atomic rather than a mutex to coordinate. Tested by running an internal test under ThreadSanitizer where a race is reported without this fix and no race with the fix. Issue: #6938
- Loading branch information
1 parent
513f584
commit 409bc80
Showing
2 changed files
with
45 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters