Skip to content

Treat multithreading support as an immutable runtime capability - #137285

Draft
sbomer wants to merge 2 commits into
mainfrom
sbomer/threading-capability-not-switch
Draft

sbomer wants to merge 2 commits into
mainfrom
sbomer/threading-capability-not-switch

Conversation

@sbomer

@sbomer sbomer commented Nov 10, 2026

Copy link
Copy Markdown
Member

Treat RuntimeFeature.IsMultithreadingSupported as a capability of the selected runtime, not a configurable feature switch. Its getter is already a build-time constant. Removing FeatureSwitchDefinition prevents a later publish from overriding the value after library trimming has folded callers against it.

Remove the redundant browser SDK/test settings and add a trimming regression that supplies the opposite feature setting, then checks the property against whether Thread.Start() succeeds.

Browser CoreLib and System.Runtime reference builds passed. Isolated ILLink probes confirmed constant folding for both values and the threading regression failing before/passing after. Full WASM execution is blocked by a clean-baseline WasmAppHost StaticWebAssets failure; NativeAOT execution has not been validated.

The explicit library-time feature argument in #136495 still needs removing after that PR merges.

Note

This content was created with assistance from AI.

Assisted-by: GitHub Copilot:gpt-6.1-sol
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 94c0df5a-cf69-4aab-a8e6-d4694cd45b7f
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Assisted-by: GitHub Copilot:gpt-6.1-sol
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 94c0df5a-cf69-4aab-a8e6-d4694cd45b7f
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-system-runtime
See info in area-owners.md if you want to be subscribed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant