Skip to content

Simplify winsock initialization - #129225

Merged
MihaZupan merged 3 commits into
dotnet:mainfrom
DoctorKrolic:simplify-winsock-init
Jun 11, 2026
Merged

MihaZupan merged 3 commits into
dotnet:mainfrom
DoctorKrolic:simplify-winsock-init

Conversation

@DoctorKrolic

@DoctorKrolic DoctorKrolic commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Jun 10, 2026
@MihaZupan MihaZupan added this to the 11.0.0 milestone Jun 10, 2026
@MihaZupan
MihaZupan enabled auto-merge (squash) June 10, 2026 12:56
Copilot AI added a commit that referenced this pull request Jun 10, 2026
Following the simplification in #129225, replace `Interlocked` operations on
`int` fields that only ever hold the values 0/1 with operations on `bool`
fields, using the generic `Interlocked.Exchange<T>` / `CompareExchange<T>`
overloads.

Limited to projects whose only target framework is `NetCoreAppCurrent`
(the generic Interlocked primitive support requires .NET 9+), plus
System.Private.CoreLib (which always targets the current TFM).

Co-authored-by: MihaZupan <[email protected]>
@MihaZupan
MihaZupan merged commit e563422 into dotnet:main Jun 11, 2026
95 checks passed
@DoctorKrolic
DoctorKrolic deleted the simplify-winsock-init branch June 11, 2026 19:20
@dotnet-milestone-bot dotnet-milestone-bot Bot modified the milestones: 11.0.0, 11.0-preview6 Jun 17, 2026
eiriktsarpalis pushed a commit that referenced this pull request Jul 15, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Net.Sockets community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants