forked from golang/tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The loader was calling (*types.Checker).Files on the "unsafe" package, a global variable. Even with zero files, this operation is not a no-op because it sets the package's "complete" flag, leading to a data race. (Because Unsafe.complete is already set at construction, the race is benign, but is reported by -race nonetheless.) Fixes golang/go#20718 Change-Id: I5a4f95be5ab4c60ea3b6c2a7fb6f1b67acbf42bc Reviewed-on: https://go-review.googlesource.com/46071 Reviewed-by: Brad Fitzpatrick <[email protected]>
- Loading branch information
Showing
2 changed files
with
25 additions
and
7 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