summaryrefslogtreecommitdiff
path: root/src/vm/threadsuspend.cpp
diff options
context:
space:
mode:
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