JIT: remove inlining restriction for some methods that throw (#2232)
authorAndy Ayers <andya@microsoft.com>
Wed, 29 Jan 2020 00:01:09 +0000 (16:01 -0800)
committerGitHub <noreply@github.com>
Wed, 29 Jan 2020 00:01:09 +0000 (16:01 -0800)
commit110af6e057e28736f69acfde306780d8649175ad
treeca49a19f95038a84137e804176792e6db4f23fe2
parent3a457cb4b552d9b32fbf844389ad2a08bcb2a7a6
JIT: remove inlining restriction for some methods that throw (#2232)

We were blocking inlines for methods that throw with more than one thing on the
evaluation stack. There was already logic for the non-inlining case to flush
the stack and preserve pending side effects. So we can simply remove the
inlining restriction.

Fixes #2156.
src/coreclr/src/jit/importer.cpp
src/coreclr/src/jit/inline.def