Improve stack probing for Linux/arm64
authorBruce Forstall <brucefo@microsoft.com>
Tue, 30 Apr 2019 01:36:59 +0000 (18:36 -0700)
committerBruce Forstall <brucefo@microsoft.com>
Fri, 17 May 2019 21:54:20 +0000 (14:54 -0700)
commitbbeab9c3a98a6efd2336437753d0b471eca20e30
tree4b37d9329c97729e64cccf06193c3a2858df656e
parent04b3162e8463be526ae77e0a90761485a3aeca5c
Improve stack probing for Linux/arm64

Avoid the case where we miss touching a page with a large
outgoing argument space plus a callee large local frame
size.

Add asserts that prolog SP adjustments before a stack touch
don't exceed the threshold we allow. This ensures that a
stack touch on the caller will be sufficient for the callee.

Fixes dotnet/coreclr#23821

Commit migrated from https://github.com/dotnet/coreclr/commit/54f021fbb5a6b2ff12733d7321a491dcd63aa502
src/coreclr/src/jit/codegenarm64.cpp
src/coreclr/src/jit/codegenarmarch.cpp
src/coreclr/src/jit/codegencommon.cpp
src/coreclr/src/jit/target.h