Skip to content

[release/11.0] Add StackTraceHidden to a few more infrastructure runtime async mehods - #134225

Open
github-actions[bot] wants to merge 1 commit into
release/11.0from
backport/pr-134175-to-release/11.0
Open

github-actions[bot] wants to merge 1 commit into
release/11.0from
backport/pr-134175-to-release/11.0

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Backport of #134175 to release/11.0

/cc @jakobbotsch

Customer Impact

  • Customer reported
  • Found internally

Internal runtime async infrastructure methods may show up in stack traces.

Regression

  • Yes
  • No

Testing

Test modified to cover more cases.

Risk

Low. Just adds attributes to these methods.

…ods (#134175)

These internal methods still can show up in stack traces in some cases.
E.g. #131951 shows
```
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 544
   at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult[T](Task task, Byte& result) in /_/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 139
   at System.Net.HttpWebRequest.HandleResponse(Boolean async) in /_/src/libraries/System.Net.Requests/src/System/Net/HttpWebRequest.cs:line 1281
```

Make the existing test cover cases where these would show up.
@azure-pipelines

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

@steveisok steveisok added the Servicing-approved Approved for servicing release label Sep 18, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

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

Labels

area-System.Reflection Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants