summaryrefslogtreecommitdiff
path: root/src/vm/threadsuspend.cpp
diff options
context:
space:
mode:
authorBrian Robbins <brianrob@microsoft.com>2017-05-24 14:43:54 -0700
committerGitHub <noreply@github.com>2017-05-24 14:43:54 -0700
commitcd88c6919e75617fad6a6c6e772ee16f09d53ac2 (patch)
tree0fc7392dbfa426d8672c4ef397c31d5aa69a7d7e /src/vm/threadsuspend.cpp
parent2c83d8d2dbd8a99cdb99180f4371c1a5d7211a6f (diff)
downloadcoreclr-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.cpp5
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