[Release/3.1] Fixes for profiler stack sampling (#27300)
authorDavid Mason <davmason@microsoft.com>
Mon, 21 Oct 2019 20:57:30 +0000 (13:57 -0700)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2019 20:57:30 +0000 (13:57 -0700)
commita43e0c2108d27cc88a22a9881ce5aaaa690a1d65
tree621ab0d01ff909b620c46699ad338ed33431d812
parent89091b51f3a4ececbf2af2e9fff6f9400efe8191
[Release/3.1] Fixes for profiler stack sampling  (#27300)

* only set THREAD_IS_SUSPENDED if we are truly doing an async stack walk (#26985)

* Use a new COR_PRF_SUSPEND_FOR_PROFILER in ICorProfilerCallback::RuntimeThreadSuspended() when requested by profiler (#27041)

Fixes https://github.com/dotnet/coreclr/issues/26576
src/inc/corprof.idl
src/pal/prebuilt/inc/corprof.h
src/vm/proftoeeinterfaceimpl.cpp
src/vm/threadsuspend.cpp