From 6b012555a809af12a7944fe013e82dedb3f1a609 Mon Sep 17 00:00:00 2001 From: Steve MacLean Date: Thu, 31 May 2018 12:50:12 -0400 Subject: [PATCH] Fix HasPendingGCStressInstructionUpdate CONSISTENCY_CHECK --- src/vm/threads.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vm/threads.h b/src/vm/threads.h index 7693783..5cafc61 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() { -- 2.7.4