Skip to content

Commit 2499330

Browse files
committed
enable safe point suspend
1 parent 0154a90 commit 2499330

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/coreclr/nativeaot/Runtime/thread.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -658,15 +658,15 @@ void Thread::HijackCallback(NATIVE_CONTEXT* pThreadContext, void* pThreadToHijac
658658
if (codeManager->IsSafePoint(pvAddress))
659659
{
660660
// if we are not given a thread to hijack
661-
//// perform in-line wait on the current thread
662-
//if (pThreadToHijack == NULL)
663-
//{
664-
// ASSERT(pThread->m_interruptedContext == NULL);
665-
// pThread->m_interruptedContext = pThreadContext;
666-
// pThread->WaitForGC(INTERRUPTED_THREAD_MARKER);
667-
// pThread->m_interruptedContext = NULL;
668-
// return;
669-
//}
661+
// perform in-line wait on the current thread
662+
if (pThreadToHijack == NULL)
663+
{
664+
ASSERT(pThread->m_interruptedContext == NULL);
665+
pThread->m_interruptedContext = pThreadContext;
666+
pThread->WaitForGC(INTERRUPTED_THREAD_MARKER);
667+
pThread->m_interruptedContext = NULL;
668+
return;
669+
}
670670

671671
#ifdef FEATURE_SUSPEND_REDIRECTION
672672
if (pThread->Redirect())

0 commit comments

Comments
 (0)