зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1320134 - Part 3: Annotate the crash report with TLS allocation stacks on running out of TLS slots. r=ted
MozReview-Commit-ID: 9BEe4G28Txd
This commit is contained in:
Родитель
615a84813f
Коммит
0f5d7dafd5
|
@ -24,6 +24,10 @@
|
|||
#include "nsXULAppAPI.h"
|
||||
#include "jsfriendapi.h"
|
||||
|
||||
#ifdef XP_WIN
|
||||
#include "mozilla/TlsAllocationTracker.h"
|
||||
#endif
|
||||
|
||||
#if defined(XP_WIN32)
|
||||
#ifdef WIN32_LEAN_AND_MEAN
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
|
@ -1385,6 +1389,13 @@ PrepareChildExceptionTimeAnnotations()
|
|||
WriteAnnotation(apiData, "TopPendingIPCType", topPendingIPCTypeBuffer);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
const char* tlsAllocations = mozilla::GetTlsAllocationStacks();
|
||||
if (tlsAllocations) {
|
||||
WriteAnnotation(apiData, "TlsAllocations", tlsAllocations);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
|
|
Загрузка…
Ссылка в новой задаче