From 26f72749eda9bc7f800f09218cc04fe991d65dd9 Mon Sep 17 00:00:00 2001 From: Steve MacLean Date: Tue, 29 May 2018 13:35:03 -0400 Subject: Fix GCStress assertion --- src/vm/threads.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/vm/threads.h') diff --git a/src/vm/threads.h b/src/vm/threads.h index 70fcb522c8..16b033496c 100644 --- a/src/vm/threads.h +++ b/src/vm/threads.h @@ -4824,8 +4824,8 @@ public: LIMITED_METHOD_CONTRACT; PRECONDITION(!HasPendingGCStressInstructionUpdate()); - m_pbDestCode = pbDestCode; - m_pbSrcCode = pbSrcCode; + VolatileStoreWithoutBarrier(&m_pbSrcCode, pbSrcCode); + VolatileStore(&m_pbDestCode, pbDestCode); } bool HasPendingGCStressInstructionUpdate() { @@ -4838,8 +4838,8 @@ public: LIMITED_METHOD_CONTRACT; PRECONDITION(HasPendingGCStressInstructionUpdate()); - m_pbDestCode = NULL; - m_pbSrcCode = NULL; + VolatileStoreWithoutBarrier(&m_pbDestCode, NULL); + VolatileStore(&m_pbSrcCode, NULL); } #if defined(GCCOVER_TOLERATE_SPURIOUS_AV) void SetLastAVAddress(LPVOID address) -- cgit v1.2.3