Merge pull request #2735 from xmcclure/early-lookup-addr
authormonojenkins <jo.shields+jenkins@xamarin.com>
Wed, 9 Mar 2016 03:55:27 +0000 (03:55 +0000)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Wed, 9 Mar 2016 03:55:27 +0000 (03:55 +0000)
Early ICALL_ADDR lookup on pinvoke to fix checked-build assert

The pinvoke implementation in the failure case was creating a managed
exception object while in blocking mode, a rules violation. This patch
puts a redundant lookup early so that any exceptions occur before
blocking mode is entered. (The "real" lookup is unchanged because the
current pattern is optimized well by the JIT.)


Trivial merge