Skip to content
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

Remove non-determinism from R2R field access #73663

Merged
merged 2 commits into from
Aug 11, 2022

Conversation

davidwrighton
Copy link
Member

  • Remove all trace of storing off the field token in a compiler non-deterministic manner
  • Notably, remove the _fieldToRefTokens field from ModuleTokenResolver, and remove the ability of that class to resolve tokens for fields
  • Add a new concept called FieldWithToken modeled after MethodWithToken
  • Plumb through the various dependency analysis structures as needed

Fixes #73403

- Remove all trace of storing off the field token in a compiler non-deterministic manner
 - Notably, remove the _fieldToRefTokens field from ModuleTokenResolver, and remove the ability of that class to resolve tokens for fields
- Add a new concept called FieldWithToken modeled after MethodWithToken
- Plumb through the various dependency analysis structures as needed

Fixes dotnet#73403
Copy link
Member

@trylek trylek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thank you!

@davidwrighton davidwrighton merged commit 0559d4a into dotnet:main Aug 11, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 10, 2022
@davidwrighton davidwrighton deleted the fix_field_nondeterminism branch April 13, 2023 18:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crossgen2 determinism issue found in Roslyn
2 participants