summaryrefslogtreecommitdiff
path: root/src/vm/threads.cpp
diff options
context:
space:
mode:
authorSteve MacLean <stmaclea@microsoft.com>2019-03-05 06:29:18 -0500
committerJan Kotas <jkotas@microsoft.com>2019-03-05 03:29:18 -0800
commitdc11162e1c36624d3cabb6e0bf6583a94ab2e30c (patch)
treeeb44fd174038cecc76e18a482bd1478d2434c3af /src/vm/threads.cpp
parentb54752c8869f55c82cc24b49fbb1b48a87090943 (diff)
downloadcoreclr-dc11162e1c36624d3cabb6e0bf6583a94ab2e30c.tar.gz
coreclr-dc11162e1c36624d3cabb6e0bf6583a94ab2e30c.tar.bz2
coreclr-dc11162e1c36624d3cabb6e0bf6583a94ab2e30c.zip
Remove dead AppDomain unload code (#23026)
Diffstat (limited to 'src/vm/threads.cpp')
-rw-r--r--src/vm/threads.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/vm/threads.cpp b/src/vm/threads.cpp
index 53d87a7b61..53707759a4 100644
--- a/src/vm/threads.cpp
+++ b/src/vm/threads.cpp
@@ -3363,7 +3363,7 @@ void Thread::DoAppropriateWaitWorkerAlertableHelper(WaitMode mode)
}
else
{
- HandleThreadInterrupt((mode & WaitMode_ADUnload) != 0);
+ HandleThreadInterrupt();
// Safe to clear the interrupted state, no APC could have fired since we
// reset m_UserInterrupt (which inhibits our APC callback from doing
@@ -3476,7 +3476,7 @@ retry:
if (m_State & TS_Interrupted)
{
- HandleThreadInterrupt(mode & WaitMode_ADUnload);
+ HandleThreadInterrupt();
}
// We could be woken by some spurious APC or an EE APC queued to
// interrupt us. In the latter case the TS_Interrupted bit will be set
@@ -3685,7 +3685,7 @@ retry:
if ((m_State & TS_Interrupted))
{
- HandleThreadInterrupt(mode & WaitMode_ADUnload);
+ HandleThreadInterrupt();
}
if (millis != INFINITE)
{
@@ -3799,7 +3799,7 @@ retry:
// in the thread state bits. Otherwise we just go back to sleep again.
if ((m_State & TS_Interrupted))
{
- HandleThreadInterrupt(FALSE);
+ HandleThreadInterrupt();
}
if (INFINITE != millis)
{
@@ -4192,7 +4192,7 @@ void Thread::UserSleep(INT32 time)
// If someone has interrupted us, we should not enter the wait.
if (IsUserInterrupted())
{
- HandleThreadInterrupt(FALSE);
+ HandleThreadInterrupt();
}
ThreadStateHolder tsh(TRUE, TS_Interruptible | TS_Interrupted);
@@ -4213,7 +4213,7 @@ retry:
// in the thread state bits. Otherwise we just go back to sleep again.
if ((m_State & TS_Interrupted))
{
- HandleThreadInterrupt(FALSE);
+ HandleThreadInterrupt();
}
if (dwTime == INFINITE)
@@ -5962,7 +5962,7 @@ Retry:
#endif // _DEBUG
-void Thread::HandleThreadInterrupt (BOOL fWaitForADUnload)
+void Thread::HandleThreadInterrupt ()
{
STATIC_CONTRACT_THROWS;
STATIC_CONTRACT_GC_TRIGGERS;
@@ -5973,9 +5973,7 @@ void Thread::HandleThreadInterrupt (BOOL fWaitForADUnload)
if ((m_UserInterrupt & TI_Abort) != 0)
{
- // If the thread is waiting for AD unload to finish, and the thread is interrupted,
- // we can start aborting.
- HandleThreadAbort(fWaitForADUnload);
+ HandleThreadAbort();
}
if ((m_UserInterrupt & TI_Interrupt) != 0)
{