Updates m_LastRedirectIP and m_SpinCount only for non-Unix platforms (dotnet/coreclr...
authorJonghyun Park <parjong@gmail.com>
Wed, 30 Nov 2016 07:44:11 +0000 (16:44 +0900)
committerJan Kotas <jkotas@microsoft.com>
Wed, 30 Nov 2016 07:44:11 +0000 (23:44 -0800)
Both variables are available only for non-Unix platforms.

Commit migrated from https://github.com/dotnet/coreclr/commit/ce9a231f1498719eb665e2017611d7bfeb41ed49

src/coreclr/src/vm/threads.cpp

index bcc4fe3..38094ca 100644 (file)
@@ -2022,8 +2022,10 @@ Thread::Thread()
     m_ppvHJRetAddrPtr = (VOID**) 0xCCCCCCCCCCCCCCCC;
     m_pvHJRetAddr = (VOID*) 0xCCCCCCCCCCCCCCCC;
 
+#ifndef PLATFORM_UNIX
     X86_ONLY(m_LastRedirectIP = 0);
     X86_ONLY(m_SpinCount = 0);
+#endif // PLATFORM_UNIX
 #endif // FEATURE_HIJACK
 
 #if defined(_DEBUG) && defined(TRACK_SYNC)