Replacing Lock with Volatile.Read for SecureString Length (#16112)
authorMaryam Ariyan <maryam.ariyan@microsoft.com>
Wed, 31 Jan 2018 04:18:08 +0000 (23:18 -0500)
committerDan Moseley <danmose@microsoft.com>
Wed, 31 Jan 2018 04:18:08 +0000 (04:18 +0000)
commit5367e7e7fd77fbac91af9134373f6b275dd0d64d
treec68577848ec070d27d11397613cec436199c63bd
parent1992030bcaff8f501e109f75fff93fa36175e8c0
Replacing Lock with Volatile.Read for SecureString Length (#16112)

* Replacing Lock on SecureString Length with Volatile Read

Fixes #26685

* Replacing Lock with Volatile Read/Write for IsReadOnly() and MakeReadOnly()
src/mscorlib/shared/System/Security/SecureString.cs