Reduce stack size used by interpreter frame on Windows MSVC. (#14659)
commit8d0ad4c81634643f8903c58ba4f11e462a2e26a6
authorJohan Lorensson <lateralusx.github@gmail.com>
Mon, 27 May 2019 21:55:52 +0000 (27 23:55 +0200)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Mon, 27 May 2019 21:55:52 +0000 (27 17:55 -0400)
treefa42b6d46b227face094a69057cbb14669fe9d1a
parent07c5ecdf7ba1987dc181d9b31ecbadd95224de91
Reduce stack size used by interpreter frame on Windows MSVC. (#14659)

Reduce stack size used by interpreter frame on Windows MSVC.

Interpreter frame was 1248 bytes in size under Windows MSVC. This was almost double the size of other platforms ~670 bytes. After investigating different constructs in interpreter switch statement in interp_exec_method_full, it turns out that local declared errors couldn't be reused over different case statements and added ~100 bytes each. Switching local declared errors to shared one, reduce the stack size down to ~670 bytes under Windows MSVC.
mono/mini/interp/interp.c