summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Au <cshung@gmail.com>2018-11-30 13:40:44 -0800
committerGitHub <noreply@github.com>2018-11-30 13:40:44 -0800
commit08d9c11bdf09837ee39aad4766091ce44e6ee837 (patch)
tree99aa1feeea06ecff8ae9891514a83f942710808c
parent87ac2b53d4618f994e67266fd99f479531018059 (diff)
downloadcoreclr-08d9c11bdf09837ee39aad4766091ce44e6ee837.tar.gz
coreclr-08d9c11bdf09837ee39aad4766091ce44e6ee837.tar.bz2
coreclr-08d9c11bdf09837ee39aad4766091ce44e6ee837.zip
Eliminate the requirement that abort requires no lock held on the current thread (#21206)
-rw-r--r--src/vm/threadsuspend.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/vm/threadsuspend.cpp b/src/vm/threadsuspend.cpp
index 67acec280a..f33d38e6a3 100644
--- a/src/vm/threadsuspend.cpp
+++ b/src/vm/threadsuspend.cpp
@@ -1121,12 +1121,6 @@ BOOL Thread::ReadyForAsyncException()
return FALSE;
}
- // If we are doing safe abort, we can not abort a thread if it has locks.
- if (m_AbortType == EEPolicy::TA_Safe && HasLockInCurrentDomain()) {
- STRESS_LOG0(LF_APPDOMAIN, LL_INFO10, "in Thread::ReadyForAbort HasLock\n");
- return FALSE;
- }
-
REGDISPLAY rd;
Frame *pStartFrame = NULL;