Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Pfister <steveisok@users.noreply.github.com>2019-09-23 17:52:23 +0300
committerGitHub <noreply@github.com>2019-09-23 17:52:23 +0300
commit15e939d542d06557c6ce910358106edf9aaa0297 (patch)
treef567be978c00122eda8b71cb709f1cc4c1fdec67 /mcs/class/referencesource
parent8db7d198b277111737ff631242383382d5a375e1 (diff)
Restore Previous ExecutionContext Capture Behavior (#16945)
Restores previous ExecutionContext Capture behavior where we were copying a new SynchronizationContext as opposed to a reference to the existing one. The old behavior caused SynchronizationContextAwaitTaskContinuations to not post to a SynchronizationContext. Fixes https://github.com/mono/mono/issues/16759 Reverts a fix for https://github.com/mono/mono/issues/12421
Diffstat (limited to 'mcs/class/referencesource')
-rw-r--r--mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs4
1 files changed, 0 insertions, 4 deletions
diff --git a/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs b/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs
index a657d28393e..33e64cc5dc0 100644
--- a/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs
+++ b/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs
@@ -1316,11 +1316,7 @@ namespace System.Threading
{
// capture the sync context
if (0 == (options & CaptureOptions.IgnoreSyncCtx))
-#if MONO
- syncCtxNew = ecCurrent.SynchronizationContext;
-#else
syncCtxNew = (ecCurrent.SynchronizationContext == null) ? null : ecCurrent.SynchronizationContext.CreateCopy();
-#endif
#if FEATURE_REMOTING
// copy over the Logical Call Context