ASAN races in leak checker
Former-commit-id: 9dfa074cd6d5ed9a87036e582861dfc386b56d5e
This commit is contained in:
parent
2687677ba6
commit
c64f9d5d30
@ -222,7 +222,8 @@ public:
|
|||||||
auto itr = m_mapwait.find(pidCheck);
|
auto itr = m_mapwait.find(pidCheck);
|
||||||
if (itr == m_mapwait.end())
|
if (itr == m_mapwait.end())
|
||||||
break;
|
break;
|
||||||
pidCheck = itr->second->m_pidOwner;
|
|
||||||
|
__atomic_load(&itr->second->m_pidOwner, &pidCheck, __ATOMIC_RELAXED);
|
||||||
if (pidCheck == thispid)
|
if (pidCheck == thispid)
|
||||||
{
|
{
|
||||||
// Deadlock detected, printout some debugging info and crash
|
// Deadlock detected, printout some debugging info and crash
|
||||||
@ -233,7 +234,7 @@ public:
|
|||||||
{
|
{
|
||||||
auto itr = m_mapwait.find(pidCheck);
|
auto itr = m_mapwait.find(pidCheck);
|
||||||
serverLog(3 /* LL_WARNING */, "\t%d: (%p) %s", pidCheck, itr->second, itr->second->szName);
|
serverLog(3 /* LL_WARNING */, "\t%d: (%p) %s", pidCheck, itr->second, itr->second->szName);
|
||||||
pidCheck = itr->second->m_pidOwner;
|
__atomic_load(&itr->second->m_pidOwner, &pidCheck, __ATOMIC_RELAXED);
|
||||||
if (pidCheck == thispid)
|
if (pidCheck == thispid)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user