-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix data race in compiler when resolver provides unlinked descriptor …
…proto (#103) From looking at the data race errors in bug report #102, this can happen only if a `*descriptorpb.FileDescriptorProto` or `parser.Result` is provided as a search result and is shared across parallel compiler operations. Importantly, that means that most usages of the compiler are safe and won't ever observe any data races (including the way that the Buf CLI uses it).
- Loading branch information
Showing
11 changed files
with
604 additions
and
22 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,6 @@ | |
|
||
//go:build !race | ||
|
||
package parser | ||
package internal | ||
|
||
const isRace = false | ||
const IsRace = false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,6 @@ | |
|
||
//go:build race | ||
|
||
package parser | ||
package internal | ||
|
||
const isRace = true | ||
const IsRace = true |
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
Oops, something went wrong.