summaryrefslogtreecommitdiff
path: root/src/vm/threads.h
diff options
context:
space:
mode:
authorSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>2018-05-31 12:50:12 -0400
committerSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>2018-05-31 13:08:53 -0400
commit6b012555a809af12a7944fe013e82dedb3f1a609 (patch)
treeaad50cdef1f252e28fa2d47bdbb82c98c8853a5e /src/vm/threads.h
parent5d8cdfe45b8f3c68f6a9f1c0679f941b506f6757 (diff)
downloadcoreclr-6b012555a809af12a7944fe013e82dedb3f1a609.tar.gz
coreclr-6b012555a809af12a7944fe013e82dedb3f1a609.tar.bz2
coreclr-6b012555a809af12a7944fe013e82dedb3f1a609.zip
Fix HasPendingGCStressInstructionUpdate CONSISTENCY_CHECK
Diffstat (limited to 'src/vm/threads.h')
-rw-r--r--src/vm/threads.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vm/threads.h b/src/vm/threads.h
index 769378338a..5cafc61bdb 100644
--- a/src/vm/threads.h
+++ b/src/vm/threads.h
@@ -4830,8 +4830,9 @@ public:
bool HasPendingGCStressInstructionUpdate()
{
LIMITED_METHOD_CONTRACT;
- CONSISTENCY_CHECK((NULL == m_pbDestCode) == (NULL == m_pbSrcCode));
- return m_pbDestCode != NULL;
+ BYTE* dest = VolatileLoad(&m_pbDestCode);
+ CONSISTENCY_CHECK((NULL == dest) || (NULL != VolatileLoadWithoutBarrier(&m_pbSrcCode)));
+ return dest != NULL;
}
void ClearGCStressInstructionUpdate()
{