Special case object pool redirection#12308
Conversation
- Don't redirect to the shared VS copy - Redirect to the copy that is next to the compiler - This ensures that both tooling and roslyn can find the same assemblies See embedded comment for a detailed description of the problem and why this fixes it.
af81402 to
71e1f1a
Compare
davidwengier
left a comment
There was a problem hiding this comment.
Excellent comment!
The only thing this doesn't really answer for me is why it started happening so much more often, or was it just because the default for the source generator suppression changed?
|
@davidwengier Yeah, we changed the default. Previously, when Roslyn loaded first the other race condition would ensure that the generator is suppressed. That means it doesn't really touch any of the actual generator code and doesn't load So this race condition was effectively being avoided by the suppression race condition acting as a loader lock 😆 |
|
/backport to release/dev18.0 |
|
Started backporting to release/dev18.0: https://github.com/dotnet/razor/actions/runs/18391573119 |
See embedded comment for a detailed description of the problem and why this fixes it.
Fixes https://devdiv.visualstudio.com/DevDiv/_queries/edit/2595643 (AKA Race condition 2)