[mini] Don't assert on MONO_PATCH_INFO_GC_SAFE_POINT_FLAG if coop is disabled (#9974)
commitd36902effdcb02d93b14943ce3ceaf1bcf11619a
authorAleksey Kliger (λgeek) <akliger@gmail.com>
Mon, 13 Aug 2018 14:23:39 +0000 (13 10:23 -0400)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 13 Aug 2018 14:23:39 +0000 (13 16:23 +0200)
tree2333796cda80b80dc4fcbc2a2a6aee689dcadde2
parentd8918ebd4a8d04eea960beaf69d2b73f5fc68022
[mini] Don't assert on MONO_PATCH_INFO_GC_SAFE_POINT_FLAG if coop is disabled (#9974)

If an AOT library is loaded that was compiled with safepoints, but currently
we're running with preemptive suspend (e.g. MONO_THREADS_SUSPEND=preemptive is
set), don't assert.  `mono_polling_required` will always be false, so the
safepoint will be ignored.

Fixes https://github.com/mono/mono/issues/9947
mono/mini/mini-runtime.c