summaryrefslogtreecommitdiff
path: root/src/gc/sample
diff options
context:
space:
mode:
authorSean Gillespie <segilles@microsoft.com>2017-06-05 22:23:46 -0700
committerGitHub <noreply@github.com>2017-06-05 22:23:46 -0700
commitbab2cc30b1516cd257aba763c7a1c06497219ede (patch)
tree3023dac80e77ae51a30f9620f69290712f493e6b /src/gc/sample
parent5b9680fcc9b6fe9429f4a649bf5215de273fcbec (diff)
downloadcoreclr-bab2cc30b1516cd257aba763c7a1c06497219ede.tar.gz
coreclr-bab2cc30b1516cd257aba763c7a1c06497219ede.tar.bz2
coreclr-bab2cc30b1516cd257aba763c7a1c06497219ede.zip
[Local GC] Add TrapReturningThreads to the GC/EE interface (#12067)
Diffstat (limited to 'src/gc/sample')
-rw-r--r--src/gc/sample/gcenv.ee.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gc/sample/gcenv.ee.cpp b/src/gc/sample/gcenv.ee.cpp
index 03d960819a..1867f1c7f8 100644
--- a/src/gc/sample/gcenv.ee.cpp
+++ b/src/gc/sample/gcenv.ee.cpp
@@ -190,6 +190,11 @@ void GCToEEInterface::DisablePreemptiveGC(Thread * pThread)
pThread->DisablePreemptiveGC();
}
+bool GCToEEInterface::TrapReturningThreads()
+{
+ return !!g_TrapReturningThreads;
+}
+
gc_alloc_context * GCToEEInterface::GetAllocContext(Thread * pThread)
{
return pThread->GetAllocContext();