-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix race condition when emitting stored diagnostics #57066
Conversation
☔ The latest upstream changes (presumably #57108) made this pull request unmergeable. Please resolve the merge conflicts. |
Can you explain to me how this is racy? Loaded diagnostics are only emitted by the thread that actually allocates the dep-node and that is already synchronized. |
|
Yeah, true. However, I'm not sure how much we can avoid diagnostics re-ordering in general with parallel queries. Or, put differently, we'll have to put some machinery in place to make things more deterministic and that might (1) clash with this incr.comp. specific approach and (2) it might handle this case with the extra logic. |
Ping from triage @Zoxc / @michaelwoerister: What is the status of this PR? Is it blocked on something for the foreseeable future? |
I'm actually fine with merging it the way it is. The code will probably change in the medium term but it doesn't hurt to have this behaving correctly in the meantime. r=me with the conflicts resolved. |
@bors r=michaelwoerister |
📌 Commit b2dfd96 has been approved by |
🌲 The tree is currently closed for pull requests below priority 1000, this pull request will be tested once the tree is reopened |
Fix race condition when emitting stored diagnostics r? @michaelwoerister
⌛ Testing commit b2dfd96 with merge e44e5415dbb2b07cdc332bf32437dac54cd5f70c... |
@bors retry yielding prio to rollup in which this is included. |
Fix race condition when emitting stored diagnostics r? @michaelwoerister
☀️ Test successful - checks-travis, status-appveyor |
☀️ Test successful - checks-travis, status-appveyor |
r? @michaelwoerister