Skip to content

Commit

Permalink
Fix EventPipeSession::WriteEventSuspend (#45672)
Browse files Browse the repository at this point in the history
* wait for session write to finish in EventPipeBufferManager

* fix comment

* fix typo

* remove yieldwhile
  • Loading branch information
sywhang committed Dec 9, 2020
1 parent 76a443d commit 53c1619
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/coreclr/vm/eventpipebuffermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -983,10 +983,6 @@ void EventPipeBufferManager::SuspendWriteEvent(uint32_t sessionIndex)
EventPipeThread *pThread = pElem->GetValue()->GetThread();
threadList.Push(pThread);
pElem = m_pThreadSessionStateList->GetNext(pElem);

// Once EventPipeSession::SuspendWriteEvent completes, we shouldn't have any
// in progress writes left.
_ASSERTE(pThread->GetSessionWriteInProgress() != sessionIndex);
}
}

Expand Down

0 comments on commit 53c1619

Please sign in to comment.