-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dawn][native] Fixes TSAN race from GetCompilationInfo.
- The race happens when multiple threads Complete the CompilationInfoEvent. The call to OwnedCompilationMessages::GetCompilationInfo was writing to the owned copy of CompilationInfo in both threads. Note that in practice, the competing threads would have written the same things. - Adds an atomic bool to gate writing to the internal CompilationInfo struct that should only ever be written once. - Updates some of the asserts to use the new bool to be explicit. Bug: 373845830 Change-Id: I3998a276bc210bc5bf5bccfe31c44b4e01de4472 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/211947 Reviewed-by: Shrek Shao <[email protected]> Auto-Submit: Loko Kung <[email protected]> Reviewed-by: Geoff Lang <[email protected]> Commit-Queue: Geoff Lang <[email protected]>
- Loading branch information
Showing
2 changed files
with
16 additions
and
14 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