Skip to content

Commit

Permalink
Eliminate the requirement that abort requires no lock held on the cur…
Browse files Browse the repository at this point in the history
…rent thread (dotnet/coreclr#21206)

Commit migrated from dotnet/coreclr@08d9c11
  • Loading branch information
cshung authored Nov 30, 2018
1 parent 16d28f2 commit 427e0c7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/coreclr/src/vm/threadsuspend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 427e0c7

Please sign in to comment.