Setting the m_willBlockOnGarbageCollectionEvent earlier and only when we will block...
authorAndrew Au <cshung@gmail.com>
Fri, 14 Dec 2018 06:29:46 +0000 (22:29 -0800)
committerGitHub <noreply@github.com>
Fri, 14 Dec 2018 06:29:46 +0000 (22:29 -0800)
commit5f388cfe53163d75a2889c9e976093673840211b
tree0d5f5fa8bb04c7c18bc2e753cfc4bfce0d1d471d
parent468ffe24df2980b5a0e634829a949f8cb1f48083
Setting the m_willBlockOnGarbageCollectionEvent earlier and only when we will block to avoid the async break deadlock (dotnet/coreclr#21319)

Setting the m_willBlockOnGarbageCollectionEvent earlier and only when we will block to avoid the async break deadlock

Commit migrated from https://github.com/dotnet/coreclr/commit/b093822a4dacfe6bd36970e270f0a6d720732a04
src/coreclr/src/debug/ee/debugger.cpp
src/coreclr/src/debug/ee/debugger.h
src/coreclr/src/vm/dbginterface.h
src/coreclr/src/vm/gcenv.ee.cpp