Handle fiber enter -> enter case (without leave in between).

This commit is contained in:
Bartosz Taudul 2021-11-06 21:14:37 +01:00
parent d33de972f0
commit f925da5e01
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -6815,6 +6815,15 @@ void Worker::ProcessFiberEnter( const QueueFiberEnter& ev )
}
auto td = NoticeThread( ev.thread );
if( td->fiber )
{
auto cit = m_data.ctxSwitch.find( td->fiber->id );
assert( cit != m_data.ctxSwitch.end() );
auto& data = cit->second->v;
assert( !data.empty() );
auto& item = data.back();
item.SetEnd( t );
}
td->fiber = RetrieveThread( tid );
assert( td->fiber );