Skip to content

Commit

Permalink
Use a new COR_PRF_SUSPEND_FOR_PROFILER in ICorProfilerCallback::Runti…
Browse files Browse the repository at this point in the history
…meThreadSuspended() when requested by profiler (dotnet/coreclr#27041)

Fixes https://github.com/dotnet/coreclr/issues/26576

Commit migrated from dotnet/coreclr@09f9c9c
  • Loading branch information
k15tfu authored and davmason committed Oct 19, 2019
1 parent 0622f0d commit 1b56ed1
Show file tree
Hide file tree
Showing 3 changed files with 1,877 additions and 1,871 deletions.
3 changes: 3 additions & 0 deletions src/coreclr/src/inc/corprof.idl
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ typedef enum
COR_PRF_SUSPEND_FOR_INPROC_DEBUGGER = 6,
COR_PRF_SUSPEND_FOR_GC_PREP = 7,
COR_PRF_SUSPEND_FOR_REJIT = 8,
COR_PRF_SUSPEND_FOR_PROFILER = 9,
} COR_PRF_SUSPEND_REASON;

/*
Expand Down Expand Up @@ -1431,6 +1432,8 @@ interface ICorProfilerCallback : IUnknown
* the runtime is preparing for a GC.
* COR_PRF_SUSPEND_FOR_INPROC_DEBUGGER
* the runtime is suspending for in-process debugging.
* COR_PRF_SUSPEND_FOR_PROFILER
* the runtime is suspending because of ICorProfilerInfo10::SuspendRuntime.
* COR_PRF_SUSPEND_OTHER
* the runtime is suspending for a reason other than those above.
*/
Expand Down
Loading

0 comments on commit 1b56ed1

Please sign in to comment.