diff options
author | Jonghyun Park <parjong@gmail.com> | 2017-04-24 17:39:52 +0900 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2017-04-24 01:39:52 -0700 |
commit | e1efbf4a587c44a73bdabcbf99d6fa2074065754 (patch) | |
tree | e2fb541c5d032e512158fc74bc86e5a99c4debe7 /src/unwinder/i386/unwinder_i386.cpp | |
parent | 3b0f7a92039e6c2d49a0ddd72e068540b11beadd (diff) | |
download | coreclr-e1efbf4a587c44a73bdabcbf99d6fa2074065754.tar.gz coreclr-e1efbf4a587c44a73bdabcbf99d6fa2074065754.tar.bz2 coreclr-e1efbf4a587c44a73bdabcbf99d6fa2074065754.zip |
[x86/Linux] Remove unnecessary ResumeEsp field (#11167)
Diffstat (limited to 'src/unwinder/i386/unwinder_i386.cpp')
-rw-r--r-- | src/unwinder/i386/unwinder_i386.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/unwinder/i386/unwinder_i386.cpp b/src/unwinder/i386/unwinder_i386.cpp index 55f0766a7f..f221020752 100644 --- a/src/unwinder/i386/unwinder_i386.cpp +++ b/src/unwinder/i386/unwinder_i386.cpp @@ -105,21 +105,7 @@ OOPStackUnwinderX86::VirtualUnwind( ENUM_CALLEE_SAVED_REGISTERS(); #undef CALLEE_SAVED_REGISTER - SIZE_T paramSize = codeInfo.GetCodeManager()->GetStackParameterSize(&codeInfo); - SIZE_T paddingSize = 0; - -#ifdef UNIX_X86_ABI - // On UNIX_X86_ABI, function call may have stack alignment padding. - if (paramSize % 16 != 0) - { - paddingSize += 16 - (paramSize % 16); - } -#endif // UNIX_X86_ABI - - ContextRecord->Esp = rd.SP - paramSize; - ContextRecord->ResumeEsp = ExecutionManager::IsManagedCode((PCODE) rd.ControlPC) - ? rd.SP + paddingSize - : ContextRecord->Esp; + ContextRecord->Esp = rd.SP - codeInfo.GetCodeManager()->GetStackParameterSize(&codeInfo); ContextRecord->Eip = rd.ControlPC; // For x86, the value of Establisher Frame Pointer is Caller SP |