Mono EventPipe fixes. (#52437)
authorJohan Lorensson <lateralusx.github@gmail.com>
Mon, 10 May 2021 06:43:23 +0000 (08:43 +0200)
committerGitHub <noreply@github.com>
Mon, 10 May 2021 06:43:23 +0000 (08:43 +0200)
commitc4b5fab8d4e6080899d4769200f894bc9e3c8a23
treeb5e1275454695b13696f5467c2bfb442d5b3e491
parenta629767ab02e6c25454ea26961c1262afd74052e
Mono EventPipe fixes. (#52437)

Correct conversion of COMPlus_EventPipeCircularMB value.

CoreClr detach/shutdown is flagged much later than Mono, meaning
Mono won't run function in ep_shutdown. Since EventPipe won't
out live runtime and already runs and shutdown as integrated part
of Mono shutdown, this will always be FALSE on Mono.

Thread sleep needs to enter/exit GC safe or it will block STW, delaying
operations like sample profiler and GC.
src/mono/mono/eventpipe/ep-rt-mono.h