icecat: add release icecat-140.6.0-1gnu1 for aramo
This commit is contained in:
parent
92fef42cd6
commit
17ba0259bf
3382 changed files with 457689 additions and 569094 deletions
|
|
@ -223,7 +223,9 @@ MOZ_RUNINIT static std::optional<xpstring> defaultMemoryReportPath = {};
|
|||
|
||||
static const char kCrashMainID[] = "crash.main.3\n";
|
||||
|
||||
static CrashHelperClient* gCrashHelperClient = nullptr;
|
||||
static StaticMutex gCrashHelperClientMutex;
|
||||
static CrashHelperClient* gCrashHelperClient
|
||||
MOZ_GUARDED_BY(gCrashHelperClientMutex) = nullptr;
|
||||
static google_breakpad::ExceptionHandler* gExceptionHandler = nullptr;
|
||||
static mozilla::Atomic<bool> gEncounteredChildException(false);
|
||||
MOZ_CONSTINIT static nsCString gServerURL;
|
||||
|
|
@ -2116,6 +2118,7 @@ nsresult SetMinidumpPath(const nsAString& aPath) {
|
|||
#endif
|
||||
|
||||
// Set the path used by the crash helper for out-of-process crash generation
|
||||
StaticMutexAutoLock lock(gCrashHelperClientMutex);
|
||||
if (gCrashHelperClient) {
|
||||
set_crash_report_path(gCrashHelperClient,
|
||||
(const BreakpadChar*)path.BeginReading());
|
||||
|
|
@ -2341,6 +2344,7 @@ nsresult UnsetExceptionHandler() {
|
|||
dumpSafetyLock = nullptr;
|
||||
|
||||
std::set_terminate(oldTerminateHandler);
|
||||
StaticMutexAutoLock lock(gCrashHelperClientMutex);
|
||||
if (gCrashHelperClient) {
|
||||
crash_helper_shutdown(gCrashHelperClient);
|
||||
gCrashHelperClient = nullptr;
|
||||
|
|
@ -3308,6 +3312,7 @@ static void OOPInit() {
|
|||
gExceptionHandler->dump_path().c_str());
|
||||
#endif
|
||||
|
||||
StaticMutexAutoLock lock(gCrashHelperClientMutex);
|
||||
gCrashHelperClient = crashHelperClient;
|
||||
}
|
||||
|
||||
|
|
@ -3338,6 +3343,7 @@ CrashPipeType GetChildNotificationPipe() {
|
|||
}
|
||||
|
||||
UniqueFileHandle RegisterChildIPCChannel() {
|
||||
StaticMutexAutoLock lock(gCrashHelperClientMutex);
|
||||
if (gCrashHelperClient) {
|
||||
AncillaryData ipc_endpoint = register_child_ipc_channel(gCrashHelperClient);
|
||||
return UniqueFileHandle{ipc_endpoint};
|
||||
|
|
@ -3413,8 +3419,11 @@ bool TakeMinidumpForChild(ProcessId childPid, nsIFile** dump,
|
|||
|
||||
CrashReport* crash_report = nullptr;
|
||||
|
||||
if (gCrashHelperClient) {
|
||||
crash_report = transfer_crash_report(gCrashHelperClient, childPid);
|
||||
{
|
||||
StaticMutexAutoLock lock(gCrashHelperClientMutex);
|
||||
if (gCrashHelperClient) {
|
||||
crash_report = transfer_crash_report(gCrashHelperClient, childPid);
|
||||
}
|
||||
}
|
||||
|
||||
if (!crash_report) {
|
||||
|
|
@ -3695,12 +3704,14 @@ void GetCurrentProcessAuxvInfo(DirectAuxvDumpInfo* aAuxvInfo) {
|
|||
|
||||
void RegisterChildAuxvInfo(pid_t aChildPid,
|
||||
const DirectAuxvDumpInfo& aAuxvInfo) {
|
||||
StaticMutexAutoLock lock(gCrashHelperClientMutex);
|
||||
if (gCrashHelperClient) {
|
||||
register_child_auxv_info(gCrashHelperClient, aChildPid, &aAuxvInfo);
|
||||
}
|
||||
}
|
||||
|
||||
void UnregisterChildAuxvInfo(pid_t aChildPid) {
|
||||
StaticMutexAutoLock lock(gCrashHelperClientMutex);
|
||||
if (gCrashHelperClient) {
|
||||
unregister_child_auxv_info(gCrashHelperClient, aChildPid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue