[coop] Ensure we exit blocking mode when invoking managed code
authorLudovic Henry <ludovic@xamarin.com>
Mon, 1 Feb 2016 13:11:44 +0000 (13:11 +0000)
committerLudovic Henry <ludovic@xamarin.com>
Mon, 1 Feb 2016 20:53:02 +0000 (20:53 +0000)
commit0c0ab39407654f9f41f9e790d85b386bc627c8c3
treee4ac5442af4569e1ec61a479aeef30fd74d14d6d
parent2b3951446e277279cf2c40b64af59fd7d4023396
[coop] Ensure we exit blocking mode when invoking managed code

mono_runtime_invoke might be called by P/Invoked code, which is in blocking mode. Not switching back to running can lead to a crash when hitting a safepoint.
mono/metadata/object.c