Skip to content

Enable option to use the Windows ThreadPool - #85373

Merged
eduardo-vp merged 172 commits into
dotnet:mainfrom
eduardo-vp:feature/enable-windows-threadpool
Jun 15, 2023
Merged

Enable option to use the Windows ThreadPool#85373
eduardo-vp merged 172 commits into
dotnet:mainfrom
eduardo-vp:feature/enable-windows-threadpool

Conversation

@eduardo-vp

@eduardo-vpeduardo-vp commented Apr 26, 2023

Copy link
Copy Markdown
Member

When running on Windows, enable an option to switch between the Portable thread pool and the Windows thread pool.

This change targets NativeAOT, CoreCLR, and Mono.

Windows threadpool remains as the default for NativeAOT on Windows. For any other case the Portable thread pool remains the default.

Tests with the Windows thread pool enabled were added to the System.Threading.Threadpool solution.

Trimming is enabled to remove the unused thread pool.

Comment threadsrc/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets Outdated
@eduardo-vp

Copy link
Copy Markdown
MemberAuthor

/azp run runtime

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@eduardo-vp

Copy link
Copy Markdown
MemberAuthor

/azp run runtime

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@eduardo-vp
eduardo-vpforce-pushed the feature/enable-windows-threadpool branch from eb2c12b to 3646176CompareJune 2, 2023 19:25
@eduardo-vp
eduardo-vpforce-pushed the feature/enable-windows-threadpool branch from cff36df to 56be9f1CompareJune 5, 2023 15:24

@kouvelkouvel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a few comments, otherwise LGTM, thanks!

Comment threadsrc/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs Outdated
Comment threadsrc/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs Outdated
Comment threadsrc/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs Outdated
Comment threadsrc/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs Outdated
Comment threadsrc/libraries/System.Threading.ThreadPool/System.Threading.ThreadPool.sln Outdated
@eduardo-vp
eduardo-vp marked this pull request as ready for review June 7, 2023 15:14
@eduardo-vp
eduardo-vp merged commit 0a0fa13 into dotnet:mainJun 15, 2023
@ghostghost locked as resolved and limited conversation to collaborators Jul 15, 2023
Sign up for freeto 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.

6 participants

@eduardo-vp@davidfowl@mangod9@danmoseley@jkotas@kouvel