[x86/Linux] Update pCurrentContextPointers properly in EnsureCallerContextIsValid...
authorJonghyun Park <parjong@gmail.com>
Wed, 1 Feb 2017 01:36:36 +0000 (10:36 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 1 Feb 2017 01:36:36 +0000 (02:36 +0100)
Commit migrated from https://github.com/dotnet/coreclr/commit/8d4cfdb986165051979a1d51b999b3287c3e7481

src/coreclr/src/vm/eetwain.cpp

index b2387b2..f7257f5 100644 (file)
@@ -3072,13 +3072,9 @@ void EECodeManager::EnsureCallerContextIsValid( PREGDISPLAY  pRD, StackwalkCache
         {
             // We need to make a copy here (instead of switching the pointers), in order to preserve the current context
             *(pRD->pCallerContext) = *(pRD->pCurrentContext);
-            
-            NOT_X86(*(pRD->pCallerContextPointers) = *(pRD->pCurrentContextPointers));
-
-            T_KNONVOLATILE_CONTEXT_POINTERS *pCallerContextPointers = NULL;
-            NOT_X86(pCallerContextPointers = pRD->pCallerContextPointers);
+            *(pRD->pCallerContextPointers) = *(pRD->pCurrentContextPointers);
 
-            Thread::VirtualUnwindCallFrame(pRD->pCallerContext, pCallerContextPointers, pCodeInfo);
+            Thread::VirtualUnwindCallFrame(pRD->pCallerContext, pRD->pCallerContextPointers, pCodeInfo);
         }
 
         pRD->IsCallerContextValid = TRUE;