Conversation
Co-authored-by: jkotas <[email protected]> Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/d91ee3bf-535d-41ed-9587-cbb58c135dcd
...es/System.Private.CoreLib/src/System/Threading/ThreadPoolBoundHandle.PlatformNotSupported.cs
Outdated
Show resolved
Hide resolved
…Browser.Threads variant Co-authored-by: jkotas <[email protected]> Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/db60b8c8-f071-4c80-9401-71646c2bde1e
|
Tagging subscribers to this area: @agocke, @VSadov |
|
@copilot Fix build breaks |
…valent Co-authored-by: jkotas <[email protected]> Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/7a223942-d407-49d2-b0fc-b96d86ade2c3
Fixed in 9e1283b. MSBuild doesn't support |
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
This PR fixes multithreaded Browser WASM (TargetsBrowser=true + FeatureMultithreading=true) build breaks in CoreLib caused by duplicate type/member definitions from overlapping platform-specific source inclusions.
Changes:
- Remove
ThreadPoolBoundHandle.Browser.Threads.csand its projitems entry to avoid conflictingThreadPoolBoundHandledefinitions with the non-WindowsThreadPoolBoundHandle.PlatformNotSupported.cs. - Update the
PortableThreadPool.Unix.cscompile condition to exclude it for multithreaded Browser WASM builds, avoiding duplicateCpuUtilizationReader/WorkerThread.IsIOPendingmembers withPortableThreadPool.Browser.Threads.cs.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolBoundHandle.Browser.Threads.cs |
Deletes a redundant Browser+threads-specific partial that conflicts with the non-Windows PlatformNotSupported implementation. |
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems |
Adjusts MSBuild compile conditions to prevent Unix and Browser.Threads variants from being included together in multithreaded Browser WASM builds. |
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@copilot Regenerate wasm call helpers under https://github.com/dotnet/runtime/tree/main/src/coreclr/vm/wasm |
Co-authored-by: jkotas <[email protected]> Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/47266637-e546-4255-99d4-608dcd1f7cc2
Done in 312fed0. Built the browser-wasm runtime locally and regenerated the call helpers. Changes: new P/Invoke entries ( |
|
/ba-g infrastructure timeout |
Fix build breaks introduced by #125507 (comment)