Do YieldProcessor normalization in preemptive GC mode (#45913)
authorKoundinya Veluri <kouvel@users.noreply.github.com>
Fri, 11 Dec 2020 00:57:19 +0000 (16:57 -0800)
committerGitHub <noreply@github.com>
Fri, 11 Dec 2020 00:57:19 +0000 (01:57 +0100)
commit6e334377c3086c6e8b44dd0a37ccf3e1a27dced1
tree25463596ce1daabd41e4364001f266f481d57c9d
parent56ecd32333be78378626dc2effab46df5aa5f954
Do YieldProcessor normalization in preemptive GC mode (#45913)

- The YieldProcessor normalization takes ~10 ms. In the finalizer thread start function, `Thread::HasStarted()` puts the thread into cooperative GC mode. Switch to preemptive GC mode for the normalization.

Fixes https://github.com/dotnet/runtime/issues/42515
src/coreclr/vm/finalizerthread.cpp
src/coreclr/vm/yieldprocessornormalized.cpp