From 96c48900b0a58d15494b30aeeb7dec5e046ef83d Mon Sep 17 00:00:00 2001 From: Jonghyun Park Date: Thu, 12 Jan 2017 15:19:08 +0900 Subject: [PATCH] [x86/Linux] Do NOT use Shadow SP --- src/vm/eetwain.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vm/eetwain.cpp b/src/vm/eetwain.cpp index 16b9de457f53..dad9ea180356 100644 --- a/src/vm/eetwain.cpp +++ b/src/vm/eetwain.cpp @@ -562,7 +562,8 @@ FrameType GetHandlerFrameInfo(hdrInfo * info, // The slots grow towards lower address on the stack and is terminted by a NULL entry. // Since each subsequent slot contains the SP of a more nested EH clause, the contents of the slots are // expected to be in decreasing order. - size_t lvl; + size_t lvl = 0; +#ifndef WIN64EXCEPTIONS PTR_TADDR pSlot; for(lvl = 0, pSlot = pFirstBaseSPslot; *pSlot && lvl < unwindLevel; @@ -625,6 +626,7 @@ FrameType GetHandlerFrameInfo(hdrInfo * info, baseSP = curSlotVal; } } +#endif // WIN64EXCEPTIONS if (unwindESP != (TADDR) IGNORE_VAL) {