[cominterop] Get function ptr from interface before switching to blocking
authorAleksey Kliger <aleksey@xamarin.com>
Tue, 29 Aug 2017 23:02:24 +0000 (19:02 -0400)
committerAleksey Kliger (λgeek) <akliger@gmail.com>
Thu, 31 Aug 2017 14:42:19 +0000 (10:42 -0400)
commit0eb6e77c84d4008627c2610e528a91714ad81ab8
tree6f722538865054ee15b95bfddaf7f94911f495af
parent0270871238b17f7f3c4b319352c0aa2078f6b9ab
[cominterop] Get function ptr from interface before switching to blocking

The cominterop_get_function_pointer icall has a wrapper which has a
trampoline.  When we enter the trampoline mono_marshal_emit_native_wrapper
already switched us to blocking.
mono/metadata/cominterop.c
mono/metadata/cominterop.h
mono/metadata/marshal.c