Skip to content

Commit

Permalink
Fix #91
Browse files Browse the repository at this point in the history
* Profiler: Fixed the deadlock occur caused by a buffer overrun.
  • Loading branch information
urasandesu committed Mar 12, 2017
1 parent 385de98 commit 4beea8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Urasandesu.Prig/Weaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,11 @@ namespace CWeaverDetail {
auto *pDisp = pDomainProf->GetMetadataDispenser();
auto asmId = lexical_cast<wstring>(pAsmProf->GetID());
auto pData = pDomainProf->GetData(asmId);
_ASSERTE(pData);
if (!pData)
// Normally, this condition has never been satisfied.
// But it has been satisfied occasionally depending on the timing to unload AppDomain.
return S_OK;

auto &prigData = *pData.Get<PrigData *>();
_ASSERTE(!prigData.m_indDllPath.empty());

Expand Down

0 comments on commit 4beea8c

Please sign in to comment.