Fix localloc with large out arg space (dotnet/coreclr#24388)
authorBruce Forstall <brucefo@microsoft.com>
Fri, 17 May 2019 17:16:31 +0000 (10:16 -0700)
committerGitHub <noreply@github.com>
Fri, 17 May 2019 17:16:31 +0000 (10:16 -0700)
commit04b3162e8463be526ae77e0a90761485a3aeca5c
tree43d0eaa7dcacb533c9aa4f080630bb0e4209bebf
parent6e4964a293a98ad45004d461fa94dc8f459ba216
Fix localloc with large out arg space (dotnet/coreclr#24388)

Add stack probing in localloc with fixed outgoing arg frames

The SP adjustment when we re-establish the outgoing argument
space after doing a localloc must be probed. This is true for
all architectures with fixed outgoing argument space, namely,
everything but x86.

Add new tests for this.

Fixes dotnet/coreclr#23915

Commit migrated from https://github.com/dotnet/coreclr/commit/e03923c09ea8e2eaf32d69bee4f4f7486b7d6a51
src/coreclr/src/jit/codegen.h
src/coreclr/src/jit/codegenarm.cpp
src/coreclr/src/jit/codegenarm64.cpp
src/coreclr/src/jit/codegenarmarch.cpp
src/coreclr/src/jit/codegenxarch.cpp
src/coreclr/src/jit/lsraarm.cpp
src/coreclr/src/jit/target.h
src/coreclr/tests/src/JIT/Methodical/largeframes/skip6/skippage6.cs [new file with mode: 0644]
src/coreclr/tests/src/JIT/Methodical/largeframes/skip6/skippage6.csproj [new file with mode: 0644]
src/coreclr/tests/src/JIT/Methodical/largeframes/skip7/skippage7.cs [new file with mode: 0644]
src/coreclr/tests/src/JIT/Methodical/largeframes/skip7/skippage7.csproj [new file with mode: 0644]