Prevent EventPipe rundown from blocking on write (dotnet/coreclr#25523)
authorJohn Salem <josalem@microsoft.com>
Thu, 4 Jul 2019 00:52:53 +0000 (17:52 -0700)
committerGitHub <noreply@github.com>
Thu, 4 Jul 2019 00:52:53 +0000 (17:52 -0700)
commit6da125e3addff4ca5332906b8391e8a4aa233887
tree3debf321017affa8ce25984691a9ff84ddbfc3d8
parent4e645e86f9ca479b98dbf63264d6886a728ffacc
Prevent EventPipe rundown from blocking on write (dotnet/coreclr#25523)

* Write all rundown events to the buffer manager to prevent the write from blocking while holding the CodeManager lock

* * Incorporate PR feedback
* changed to one suspend rather than suspend->resume->suspend
* added some comments

* update comments

Commit migrated from https://github.com/dotnet/coreclr/commit/ae3430d8ce50c9e954192e89871aff783da375e2
src/coreclr/src/vm/eventpipe.cpp
src/coreclr/src/vm/eventpipesession.cpp
src/coreclr/src/vm/eventpipesession.h