Loading
Bug 1878428 - Prevent a deadlock while doing in-process minidump generation r=spohl a=RyanVM
This removes all the memory allocations which we were doing while writing a minidump of the crashed process from within the process itself. Under these conditions all threads are stopped save for the minidump writer; so if another thread owns a mutex guarding the memory allocator we could deadlock by doing allocations. This patch avoids allocating strings entirely and uses Breakpad's alternative allocator to sidestep the issue where we cannot avoid allocations. Differential Revision: https://phabricator.services.mozilla.com/D201960