summaryrefslogtreecommitdiff
path: root/src/vm/threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/threads.h')
-rw-r--r--src/vm/threads.h8
1 files changed, 4 insertions, 4 deletions
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<BYTE*>(&m_pbSrcCode, pbSrcCode);
+ VolatileStore<BYTE*>(&m_pbDestCode, pbDestCode);
}
bool HasPendingGCStressInstructionUpdate()
{
@@ -4838,8 +4838,8 @@ public:
LIMITED_METHOD_CONTRACT;
PRECONDITION(HasPendingGCStressInstructionUpdate());
- m_pbDestCode = NULL;
- m_pbSrcCode = NULL;
+ VolatileStoreWithoutBarrier<BYTE*>(&m_pbDestCode, NULL);
+ VolatileStore<BYTE*>(&m_pbSrcCode, NULL);
}
#if defined(GCCOVER_TOLERATE_SPURIOUS_AV)
void SetLastAVAddress(LPVOID address)