From f6359b37c6f9db872f2c191ad7264637ea14f414 Mon Sep 17 00:00:00 2001 From: Jonghyun Park Date: Wed, 1 Mar 2017 18:12:37 +0900 Subject: [PATCH] [x86/Linux] Correct GetStackParameterSize on Funclet (#9849) --- src/vm/eetwain.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/vm/eetwain.cpp b/src/vm/eetwain.cpp index 989300d..19253c0 100644 --- a/src/vm/eetwain.cpp +++ b/src/vm/eetwain.cpp @@ -5913,6 +5913,14 @@ ULONG32 EECodeManager::GetStackParameterSize(EECodeInfo * pCodeInfo) } CONTRACTL_END; #if defined(_TARGET_X86_) +#if defined(WIN64EXCEPTIONS) + if (pCodeInfo->IsFunclet()) + { + // Funclet has no stack argument + return 0; + } +#endif // WIN64EXCEPTIONS + GCInfoToken gcInfoToken = pCodeInfo->GetGCInfoToken(); unsigned dwOffset = pCodeInfo->GetRelOffset(); -- 2.7.4