Skip to content

Commit 78102c6

Browse files
committed
Add comment for helper
1 parent 3990bf7 commit 78102c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Sources/ManualResetValueTaskSourceCore.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,10 @@ private void SignalCompletion()
270270
/// </summary>
271271
private ExceptionDispatchInfo? InvokeInlineContinuation()
272272
{
273+
// This is in a helper as the error handling causes the generated asm
274+
// for the surrounding code to become less efficent (stack spills etc)
275+
// and it is an uncommon path.
276+
273277
Debug.Assert(_continuation != null);
274278
Debug.Assert(_capturedContext == null);
275279
Debug.Assert(!RunContinuationsAsynchronously);

0 commit comments

Comments
 (0)