dotnet / dotnet/runtime

Ensure reasonable behavior on exceptions during suspension

Open
#121,465 5 comments 0 reactions 1 assignee Claimed by @jakobbotsch View on GitHub
area-CodeGen-coreclr Priority:1 runtime-async
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

There are two possible source of exceptions during suspension:
* Allocation of the continuation instance can throw OOM
* ~~Restoration of ExecutionContext calls into user code through `ExecutionContext.OnValuesChanges`~~ (removed in #121743)

We should ensure that something reasonable happens in these cases.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.