Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit a43e0c2

Browse files
authored
[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
1 parent 89091b5 commit a43e0c2

File tree

4 files changed

+1892
-1874
lines changed

4 files changed

+1892
-1874
lines changed

src/inc/corprof.idl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ typedef enum
708708
COR_PRF_SUSPEND_FOR_INPROC_DEBUGGER = 6,
709709
COR_PRF_SUSPEND_FOR_GC_PREP = 7,
710710
COR_PRF_SUSPEND_FOR_REJIT = 8,
711+
COR_PRF_SUSPEND_FOR_PROFILER = 9,
711712
} COR_PRF_SUSPEND_REASON;
712713

713714
/*
@@ -1431,6 +1432,8 @@ interface ICorProfilerCallback : IUnknown
14311432
* the runtime is preparing for a GC.
14321433
* COR_PRF_SUSPEND_FOR_INPROC_DEBUGGER
14331434
* the runtime is suspending for in-process debugging.
1435+
* COR_PRF_SUSPEND_FOR_PROFILER
1436+
* the runtime is suspending because of ICorProfilerInfo10::SuspendRuntime.
14341437
* COR_PRF_SUSPEND_OTHER
14351438
* the runtime is suspending for a reason other than those above.
14361439
*/

0 commit comments

Comments
 (0)