Skip to content

Commit

Permalink
tweak the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
VSadov committed Feb 25, 2022
1 parent 6af1765 commit 9d03976
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/coreclr/vm/threadsuspend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2898,9 +2898,10 @@ BOOL Thread::RedirectThreadAtHandledJITCase(PFN_REDIRECTTARGET pTgt)
pCtx = m_pSavedRedirectContext = ThreadStore::GrabOSContext(&m_pOSContextBuffer);
}

// We may not have a preallocated context, could be short on memory, and cannot allocate
// here since we have a thread stopped in a random place, possibly holding some lock.
// Other ways and attempts at suspending may yet succeed, but this one is a failure.
// We may not have a preallocated context. Could be short on memory when we tried to preallocate.
// We cannot allocate here since we have a thread stopped in a random place, possibly holding locks
// that we would need while allocating.
// Other ways and attempts at suspending may yet succeed, but this redirection cannot continue.
if (!pCtx)
return (FALSE);

Expand Down

0 comments on commit 9d03976

Please sign in to comment.