Fix EH handling in PInvoke stubs and remove workaround (#327)
authorFadi Hanna <fadim@microsoft.com>
Wed, 27 Nov 2019 21:35:29 +0000 (13:35 -0800)
committerGitHub <noreply@github.com>
Wed, 27 Nov 2019 21:35:29 +0000 (13:35 -0800)
commitd47081a3f3c60007f652c8617b58d98ce79bd224
treeabd93e24dcd7766369a85689196c7480923fe2ca
parenta86807872d5659f9387202e1d110f8c3aa716447
Fix EH handling in PInvoke stubs and remove workaround (#327)

* Fix EH handling in PInvoke stubs and remove workaround

The fix in the JIT is to inline the raw PInvoke call if:
1) We are compiling a PInvoke IL Stub
2) We are compiling using the PInvoke helpers
src/coreclr/src/jit/importer.cpp
src/coreclr/src/tools/crossgen2/ILCompiler.ReadyToRun/IL/Stubs/PInvokeILEmitter.cs