[mini] respect additional flags when caching runtime invoke wrappers (#9385)
commit3e10378ad1161c186efe0b76b7a532ac1d78374c
authorBernhard Urban <bernhard.urban@xamarin.com>
Thu, 5 Jul 2018 18:55:07 +0000 (5 20:55 +0200)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 5 Jul 2018 18:55:07 +0000 (5 14:55 -0400)
tree15bdd2b53c72c66d4d22e55482036c4ab23399d0
parent36ceeae574c436989bd415007928de08e4bff35e
[mini] respect additional flags when caching runtime invoke wrappers (#9385)

[mini] respect additional flags when caching runtime invoke wrappers

depending on `virtual_` and `need_direct_wrapper` we generate slightly
different IL. The interpreter always set `need_direct_wrapper`, but the
JIT doesn't, so this gets problemantic with mixed mode. We need to be
careful when we cache those results.
mono/metadata/image.c
mono/metadata/marshal.c
mono/metadata/metadata-internals.h