Remove Compiler::impSmallStack
authorMike Danes <onemihaid@hotmail.com>
Sat, 16 Jun 2018 20:07:49 +0000 (23:07 +0300)
committerMike Danes <onemihaid@hotmail.com>
Sat, 30 Jun 2018 19:34:10 +0000 (22:34 +0300)
commitdc7e282344df166bf2a62bd969c14e8df65a8df7
tree35a88bd2c14ebe43c70c79fe056c9959a822bb02
parent5627d1ca14f2b9a02277b81c52f25c3d5e440e49
Remove Compiler::impSmallStack

Memory allocation via ArenaAllocator is cheap so it's not worth having this inline array that ends up wasting 384 bytes when a larger stack is needed.

Care needs to be taken when inlining to avoid allocating a new stack every time - just steal the stack of the inliner compiler (after ensuring that it is large enough).

Commit migrated from https://github.com/dotnet/coreclr/commit/f26852e51fc4954a07296cb7b9d0206dca10f8a2
src/coreclr/src/jit/compiler.h
src/coreclr/src/jit/importer.cpp