summaryrefslogtreecommitdiff
path: root/src/vm/threads.h
diff options
context:
space:
mode:
authorSteve MacLean <Steve.MacLean@Microsoft.com>2018-11-29 22:14:11 -0500
committerSteve MacLean <stmaclea@microsoft.com>2018-11-30 20:37:45 -0500
commitbab59b646768fc4dec6fa540af7c7c61c206466c (patch)
tree9611cd438098c5e95510c5fededb5b2b3217a1ca /src/vm/threads.h
parent93000363bb5bad3e545bc59c43fbaea275985fb7 (diff)
downloadcoreclr-bab59b646768fc4dec6fa540af7c7c61c206466c.tar.gz
coreclr-bab59b646768fc4dec6fa540af7c7c61c206466c.tar.bz2
coreclr-bab59b646768fc4dec6fa540af7c7c61c206466c.zip
Remove dead code
Diffstat (limited to 'src/vm/threads.h')
-rw-r--r--src/vm/threads.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/vm/threads.h b/src/vm/threads.h
index 63f2edcbf1..c57d8487e5 100644
--- a/src/vm/threads.h
+++ b/src/vm/threads.h
@@ -2510,30 +2510,6 @@ public:
{
LIMITED_METHOD_DAC_CONTRACT;
- // if another thread is asking about our thread, we could be in the middle of an AD transition so
- // the context and AD may not match if have set one but not the other. Can live without checking when
- // another thread is asking it as this method is mostly called on our own thread so will mostly get the
- // checking. If are int the middle of a transition, this could return either the old or the new AD.
- // But no matter what we do, such as lock on the transition, by the time are done could still have
- // changed right after we asked, so really no point.
-#ifdef _DEBUG_IMPL
- BEGIN_GETTHREAD_ALLOWED_IN_NO_THROW_REGION;
- if (!g_fEEShutDown && this == GetThread())
- {
- if (!fMidContextTransitionOK)
- {
- // We also want to suppress the "domain on context == domain on thread" check if this might
- // be called during a context or AD transition (in which case fMidContextTransitionOK is nonzero).
- // A profiler stackwalk can occur at arbitrary times, including during these transitions, but
- // the stackwalk is still safe to do at this point, so we don't want to trigger this assert.
- _ASSERTE((m_Context == NULL && m_pDomain == NULL) || m_Context->GetDomain() == m_pDomain);
- }
- AppDomain* valueInTLSSlot = GetAppDomain();
- _ASSERTE(valueInTLSSlot == 0 || valueInTLSSlot == m_pDomain);
- }
- END_GETTHREAD_ALLOWED_IN_NO_THROW_REGION;
-#endif
-
return m_pDomain;
}