[coop] Add a workaround in mono_marshal_get_thunk_invoke_wrapper.
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 13 Aug 2015 05:54:59 +0000 (01:54 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 14 Aug 2015 21:17:33 +0000 (17:17 -0400)
commitb684bd32e0b1cd0380fa0585c3d4fdadb0410e79
treed721334ad9758d343233387b0f75435caa85d5a1
parentecb3d6a650cc3d511e25e1086b565b00ae359533
[coop] Add a workaround in mono_marshal_get_thunk_invoke_wrapper.

This is a workaround until we figure out what to do with the embedding API.

We ensure we transition the executed managed code into unsafe mode.

Maybe the right call would be to assert if the caller is not already on it, but that's too soon of a decision to make.
mono/metadata/marshal.c