Fix Thread-related breaking changes
authorStephen Toub <stoub@microsoft.com>
Wed, 27 Feb 2019 19:51:50 +0000 (14:51 -0500)
committerStephen Toub <stoub@microsoft.com>
Wed, 27 Feb 2019 19:51:50 +0000 (14:51 -0500)
commit3042c90aa8ed4bfe56b6f6bc21c4bd93545ee239
tree4cf121f52712325582338f8300a46cc39180a3be
parent12167a75fc494deb8040fa3a04961ca5f10d14aa
Fix Thread-related breaking changes

- Thread.ExecutionContext needs to return ExecutionContext.Capture() to public callers.
- Fix restoring of culture to be inside of the ExecutionContext callback where applicable
src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/AsyncMethodBuilder.cs
src/System.Private.CoreLib/shared/System/Threading/ExecutionContext.cs
src/System.Private.CoreLib/shared/System/Threading/ThreadPool.cs
src/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs