Switch to preemptive mode before calling COM (dotnet/coreclr#21238)
authorJan Kotas <jkotas@microsoft.com>
Wed, 28 Nov 2018 19:19:48 +0000 (11:19 -0800)
committerGitHub <noreply@github.com>
Wed, 28 Nov 2018 19:19:48 +0000 (11:19 -0800)
commitbee873264f61d96637c4fa1d7e0abb780f015975
treedf48711f66831125e5d6665359ae292cac57abf0
parent28b93b574ed713897503fa575201ad8af6f2be8f
Switch to preemptive mode before calling COM (dotnet/coreclr#21238)

* Switch to preemptive mode before calling COM

COM can call back the runtime via RCW that leads to contract violations

Fixes dotnet/coreclr#20373

* Fix one places

Commit migrated from https://github.com/dotnet/coreclr/commit/4d4d028a67ac91b8b7c07d55b6376d16b1c512f2
src/coreclr/src/vm/olevariant.cpp