Move Volatile to shared (#22523)
authorStephen Toub <stoub@microsoft.com>
Mon, 11 Feb 2019 23:18:25 +0000 (18:18 -0500)
committerJan Kotas <jkotas@microsoft.com>
Mon, 11 Feb 2019 23:18:25 +0000 (15:18 -0800)
commit5da20d0805450d594a115a5402c7bc0abd224128
treec9cfbdf3028c6e2c8a638740ab1f020687a7b991
parent0ae9ba5a657b30dadb35049fc586b223530ccbbe
Move Volatile to shared (#22523)

* Move Volatile to shared

This largely takes corert's implementation, which uses Unsafe.As and volatile fields.

We could investigate also removing the JIT's replacements subsequently.

* Add [Intrinsic] attributes
src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
src/System.Private.CoreLib/shared/System/Threading/Volatile.cs [new file with mode: 0644]
src/System.Private.CoreLib/src/System/Threading/Volatile.cs [deleted file]