-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Consolidate overlapped I/O non-Windows stubs; remove stale ILLink workaround; remove incorrect [RequiresUnsafe] annotations #125507
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
Merged
jkotas
merged 31 commits into
main
from
copilot/remove-duplicate-overlapped-implementations
Mar 20, 2026
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
6c7dccf
Initial plan
Copilot f9012f7
De-duplicate PreAllocatedOverlapped.Browser.cs and PreAllocatedOverla…
Copilot 2ef8f8f
Merge remote-tracking branch 'origin/main' into copilot/remove-duplic…
Copilot c4043c1
Include PreAllocatedOverlapped.Portable.cs unconditionally in Feature…
Copilot 2fd9e73
Simplify .Unix.cs conditions in FeaturePortableThreadPool block to Ta…
Copilot 044c13b
Add PreAllocatedOverlapped.Unix.cs into FeaturePortableThreadPool blo…
Copilot 029f2d4
Sort PreAllocatedOverlapped entries alphabetically (Portable → Unix →…
Copilot bf29572
Merge remote-tracking branch 'origin/main' into copilot/remove-duplic…
Copilot 8ddec44
Sort ThreadPoolBoundHandleOverlapped.cs before ThreadPoolCallbackWrap…
Copilot 2671b4d
Add PreAllocatedOverlapped.NotSupported.cs; simplify FeatureMultithre…
Copilot 42003c9
Merge remote-tracking branch 'origin/main' into copilot/remove-duplic…
Copilot 6dfaec0
Rename Browser.cs → NotSupported.cs; use NotSupported.cs for all non-…
Copilot ba38481
UnsafeCreate throws directly; consolidate NotSupported.cs into single…
Copilot 2ca86d5
Apply suggestion from @jkotas
jkotas 3054412
Move ThreadPoolBoundHandleOverlapped.cs to the platform-neutral Windo…
Copilot a09ca2a
Rename NotSupported.cs → PlatformNotSupported.cs for PreAllocatedOver…
Copilot 5abba67
Merge remote-tracking branch 'origin/main' into copilot/remove-duplic…
Copilot 7655550
Move PreAllocatedOverlapped.WindowsThreadPool.cs to alphabetical posi…
Copilot 4047563
Move Win32ThreadPoolNativeOverlapped*.cs to Windows-only ItemGroup
Copilot f971e07
Merge remote-tracking branch 'origin/main' into copilot/remove-duplic…
Copilot e571b21
Add Debug.Fail to ThreadPoolBoundHandle private constructor in Platfo…
Copilot f77e3c4
Restore working PreAllocatedOverlapped constructor/UnsafeCreate on no…
Copilot 2c54043
Move DeferredDisposableLifetime.cs to Windows section; sort Threading…
Copilot aea91f8
Merge remote-tracking branch 'origin/main' into copilot/remove-duplic…
Copilot ffce285
Simplify PreAllocatedOverlapped.PlatformNotSupported.cs; mark tests W…
Copilot 457f05c
Merge remote-tracking branch 'origin/main' into copilot/remove-duplic…
Copilot 978de78
Add argument validation to PreAllocatedOverlapped.PlatformNotSupporte…
Copilot c9fc2bb
Merge remote-tracking branch 'origin/main' into copilot/remove-duplic…
Copilot 8b9f2b2
Remove incorrectly applied [RequiresUnsafe] from AllocateNativeOverla…
Copilot 6d73dd9
Remove [RequiresUnsafe] annotations from Overlapped.Pack and UnsafePack
Copilot 2f32d9b
Merge branch 'main' into copilot/remove-duplicate-overlapped-implemen…
jkotas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
9 changes: 0 additions & 9 deletions
9
src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.Shared.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
src/libraries/System.Private.CoreLib/src/System/Threading/PreAllocatedOverlapped.Browser.cs
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...ystem.Private.CoreLib/src/System/Threading/PreAllocatedOverlapped.PlatformNotSupported.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| namespace System.Threading | ||
| { | ||
| public sealed class PreAllocatedOverlapped : IDisposable | ||
| { | ||
| [CLSCompliant(false)] | ||
| public PreAllocatedOverlapped(IOCompletionCallback callback, object? state, object? pinData) | ||
| { | ||
| ArgumentNullException.ThrowIfNull(callback); | ||
| throw new PlatformNotSupportedException(SR.PlatformNotSupported_OverlappedIO); | ||
| } | ||
|
jkotas marked this conversation as resolved.
|
||
|
|
||
| [CLSCompliant(false)] | ||
| public static PreAllocatedOverlapped UnsafeCreate(IOCompletionCallback callback, object? state, object? pinData) | ||
| { | ||
| ArgumentNullException.ThrowIfNull(callback); | ||
| throw new PlatformNotSupportedException(SR.PlatformNotSupported_OverlappedIO); | ||
| } | ||
|
|
||
| public void Dispose() { } | ||
| } | ||
| } | ||
124 changes: 0 additions & 124 deletions
124
src/libraries/System.Private.CoreLib/src/System/Threading/PreAllocatedOverlapped.Unix.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.