Add missing FlushInstructionCache to Thread::CommitGCStressInstructionUpdate (#18784)
authorEgor Chesakov <Egor.Chesakov@microsoft.com>
Mon, 23 Jul 2018 21:15:07 +0000 (14:15 -0700)
committerGitHub <noreply@github.com>
Mon, 23 Jul 2018 21:15:07 +0000 (14:15 -0700)
src/vm/threadsuspend.cpp

index aa7fae3..35fa3ee 100644 (file)
@@ -5078,6 +5078,8 @@ void Thread::CommitGCStressInstructionUpdate()
         *pbDestCode = *pbSrcCode;
 
 #endif
+
+        FlushInstructionCache(GetCurrentProcess(), (LPCVOID)pbDestCode, 4);
     }
 }