Fix some cross-thread memory accesses in a JIT test.
authorPat Gavlin <pagavlin@microsoft.com>
Thu, 9 Mar 2017 22:40:21 +0000 (14:40 -0800)
committerPat Gavlin <pagavlin@microsoft.com>
Thu, 9 Mar 2017 22:40:21 +0000 (14:40 -0800)
commitf7f262bb19b6a80916d672a2b53958deed8424c4
tree91d8cf96e4cc062816c244f610a1e5bd7be1bcc5
parentdbf716acd1868e4f43686f98ade9da6cd87b47ee
Fix some cross-thread memory accesses in a JIT test.

This test was concurrently accessing shared memory without using
appropriate volatile accesses. This change adds the `volatile.`
prefix where necessary.

There is a slim change that this will fix dotnet/coreclr#10022.

Commit migrated from https://github.com/dotnet/coreclr/commit/84d5151162a5f50ec06d14a9b3e7c98eea809c19
src/coreclr/tests/src/JIT/Methodical/Boxing/misc/concurgc.il