diff options
author | Brian Robbins <brianrob@microsoft.com> | 2017-05-24 14:43:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-24 14:43:54 -0700 |
commit | cd88c6919e75617fad6a6c6e772ee16f09d53ac2 (patch) | |
tree | 0fc7392dbfa426d8672c4ef397c31d5aa69a7d7e /src/vm/threadsuspend.cpp | |
parent | 2c83d8d2dbd8a99cdb99180f4371c1a5d7211a6f (diff) | |
download | coreclr-cd88c6919e75617fad6a6c6e772ee16f09d53ac2.tar.gz coreclr-cd88c6919e75617fad6a6c6e772ee16f09d53ac2.tar.bz2 coreclr-cd88c6919e75617fad6a6c6e772ee16f09d53ac2.zip |
Indicate if thread time events are in managed or native code. (#11892)
Diffstat (limited to 'src/vm/threadsuspend.cpp')
-rw-r--r-- | src/vm/threadsuspend.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vm/threadsuspend.cpp b/src/vm/threadsuspend.cpp index 65495940ed..36eb9f3698 100644 --- a/src/vm/threadsuspend.cpp +++ b/src/vm/threadsuspend.cpp @@ -7514,6 +7514,11 @@ void HandleGCSuspensionForInterruptedThread(CONTEXT *interruptedContext) if (pThread->PreemptiveGCDisabled() != TRUE) return; +#ifdef FEATURE_PERFTRACING + // Mark that the thread is currently in managed code. + pThread->SaveGCModeOnSuspension(); +#endif // FEATURE_PERFTRACING + PCODE ip = GetIP(interruptedContext); // This function can only be called when the interrupted thread is in |