summaryrefslogtreecommitdiff
path: root/src/vm/eetwain.cpp
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2017-02-01 10:36:36 +0900
committerJan Vorlicek <janvorli@microsoft.com>2017-02-01 02:36:36 +0100
commit8d4cfdb986165051979a1d51b999b3287c3e7481 (patch)
tree16a9f70da6e3cdf9240959add2f0c893f0c1ca4c /src/vm/eetwain.cpp
parentabb186f739508be16c4bf51a54804aa2b302bc73 (diff)
downloadcoreclr-8d4cfdb986165051979a1d51b999b3287c3e7481.tar.gz
coreclr-8d4cfdb986165051979a1d51b999b3287c3e7481.tar.bz2
coreclr-8d4cfdb986165051979a1d51b999b3287c3e7481.zip
[x86/Linux] Update pCurrentContextPointers properly in EnsureCallerContextIsValid (#9232)
Diffstat (limited to 'src/vm/eetwain.cpp')
-rw-r--r--src/vm/eetwain.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/vm/eetwain.cpp b/src/vm/eetwain.cpp
index b2387b2834..f7257f537f 100644
--- a/src/vm/eetwain.cpp
+++ b/src/vm/eetwain.cpp
@@ -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;