[hybrid] Ensure gsharedvt isn't disabled once it's been enabled
authorLudovic Henry <ludovic@xamarin.com>
Thu, 12 Jan 2017 18:24:06 +0000 (16:24 -0200)
committerLudovic Henry <ludovic@xamarin.com>
Fri, 13 Jan 2017 11:42:59 +0000 (09:42 -0200)
commit924ef782700f1a01243c2419d7f71d95d84af257
tree23485df8e15de6b6f9e8949ca7497351b61082f2
parent6312022a95008e8b462cc6fb605ed1e0032e9d74
[hybrid] Ensure gsharedvt isn't disabled once it's been enabled

We would observe gsharedvt being disabled on desktop, even after passing --hybrid-aot. This would happen because we would call `mono_set_optimizations` without the `gsharedvt` optimisation enabled, thus calling `mono_set_generic_sharing_vt_supported(FALSE)` disabling again gsharedvt.
mono/mini/mini-generic-sharing.c