Skip to content

Conversation

xtqqczze
Copy link
Contributor

@xtqqczze xtqqczze commented Jul 21, 2025

Replaced Volatile.Read with plain field reads. The memory barriers provided by CompareExchange are sufficient to ensure thread safety and visibility, making Volatile.Read unnecessary.

Follow-up to #117817

Related: #100969

cc: @stephentoub

Replaced `Volatile.Read` with plain field reads. The memory barriers provided by `CompareExchange` are
sufficient to ensure thread safety and visibility, making `Volatile.Read`
unnecessary.

Follow-up to dotnet#117817

Related: dotnet#100969

cc: @stephentoub
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 21, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jul 21, 2025
@stephentoub
Copy link
Member

Thanks

@stephentoub stephentoub enabled auto-merge (squash) July 25, 2025 22:17
@stephentoub stephentoub merged commit f27927a into dotnet:main Jul 25, 2025
140 of 143 checks passed
@xtqqczze xtqqczze deleted the remove-volatile branch July 26, 2025 10:49
@github-actions github-actions bot locked and limited conversation to collaborators Aug 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community-contribution Indicates that the PR has been added by a community member needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants