summaryrefslogtreecommitdiff
path: root/src/vm/comdelegate.cpp
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2017-03-31 06:20:01 +0900
committerBruce Forstall <brucefo@microsoft.com>2017-03-30 14:20:01 -0700
commit5e03cb09e3754e4a3430ba424a1352b9c01ff098 (patch)
tree49bf1aa9faf93f4168dcfdf18c3886152f556617 /src/vm/comdelegate.cpp
parent4763f1121e62f45fec56cef6234446cd1ad7b8ab (diff)
downloadcoreclr-5e03cb09e3754e4a3430ba424a1352b9c01ff098.tar.gz
coreclr-5e03cb09e3754e4a3430ba424a1352b9c01ff098.tar.bz2
coreclr-5e03cb09e3754e4a3430ba424a1352b9c01ff098.zip
[x86/Linux] Use CDECL instead of STDCALL (#10410)
[x86/Linux] Use CDECL instead of STDCALL Use STDCALL/THISCALL/FASTCALL if callconv is explicitly specified Merge two adjustment (argument/alignment) into one
Diffstat (limited to 'src/vm/comdelegate.cpp')
-rw-r--r--src/vm/comdelegate.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/vm/comdelegate.cpp b/src/vm/comdelegate.cpp
index 20ae6953b8..2682c2d32a 100644
--- a/src/vm/comdelegate.cpp
+++ b/src/vm/comdelegate.cpp
@@ -277,7 +277,14 @@ VOID GenerateShuffleArray(MethodDesc* pInvoke, MethodDesc *pTargetMeth, SArray<S
COMPlusThrow(kVerificationException);
}
- UINT stackSizeDelta = stackSizeSrc - stackSizeDst;
+ UINT stackSizeDelta;
+
+#ifdef UNIX_X86_ABI
+ // Stack does not shrink as UNIX_X86_ABI uses CDECL (instead of STDCALL).
+ stackSizeDelta = 0;
+#else
+ stackSizeDelta = stackSizeSrc - stackSizeDst;
+#endif
INT ofsSrc, ofsDst;