Delay initialization of Task related properties which are rarely used (#45127)
authorMarek Safar <marek.safar@gmail.com>
Tue, 24 Nov 2020 21:08:33 +0000 (22:08 +0100)
committerGitHub <noreply@github.com>
Tue, 24 Nov 2020 21:08:33 +0000 (22:08 +0100)
commitf3acf0384adebbc8e94680c467e0ef2519d56304
treebc6e28a15321bc38ebde27afc7b3f9d3050896a4
parentd73c65ed402fad658c39d78773d181c4459b62c8
Delay initialization of Task related properties which are rarely used (#45127)

* Delay initialization of Task related properties which are rarely used

to reduce the dependencies chain

* Apply PR review suggestions

* fix up previous commit

* Update src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs

Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Future.cs