Skip to content

Commit

Permalink
enable safe point suspend
Browse files Browse the repository at this point in the history
  • Loading branch information
VSadov committed Jul 6, 2022
1 parent 0154a90 commit 2499330
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/coreclr/nativeaot/Runtime/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,15 +658,15 @@ void Thread::HijackCallback(NATIVE_CONTEXT* pThreadContext, void* pThreadToHijac
if (codeManager->IsSafePoint(pvAddress))
{
// if we are not given a thread to hijack
//// perform in-line wait on the current thread
//if (pThreadToHijack == NULL)
//{
// ASSERT(pThread->m_interruptedContext == NULL);
// pThread->m_interruptedContext = pThreadContext;
// pThread->WaitForGC(INTERRUPTED_THREAD_MARKER);
// pThread->m_interruptedContext = NULL;
// return;
//}
// perform in-line wait on the current thread
if (pThreadToHijack == NULL)
{
ASSERT(pThread->m_interruptedContext == NULL);
pThread->m_interruptedContext = pThreadContext;
pThread->WaitForGC(INTERRUPTED_THREAD_MARKER);
pThread->m_interruptedContext = NULL;
return;
}

#ifdef FEATURE_SUSPEND_REDIRECTION
if (pThread->Redirect())
Expand Down

0 comments on commit 2499330

Please sign in to comment.