Remove _activeReadWriteTask field from Stream (#32569)
authorStephen Toub <stoub@microsoft.com>
Thu, 20 Feb 2020 02:38:42 +0000 (21:38 -0500)
committerGitHub <noreply@github.com>
Thu, 20 Feb 2020 02:38:42 +0000 (21:38 -0500)
commit07f07809ed4e9294204ad67e904758c03a9b63e6
tree9a82ffb58792c45da2f3c75bed3982671396b3d5
parentad22fd3b16c05828663138272a8325fe62f22bbf
Remove _activeReadWriteTask field from Stream (#32569)

The field is only used for handling misuse (EndXx called for something other than the "current" operation / called multiple times), and only with the legacy Begin/EndXx methods, yet it's taking up 8 bytes (on 64-bit) on the very mainstream Stream type.
src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs