Bug 1558111 - Initialize record/replay state first in XRE_InitChildProcess, r=ehsan.

Differential Revision: https://phabricator.services.mozilla.com/D34361

--HG--
extra : rebase_source : 6a2472d01e9073047a18b4e2200364ca19833d5f
This commit is contained in:
Brian Hackett 2019-06-10 05:34:34 -10:00
parent 5346f3347e
commit 8359c6b639

View File

@ -331,10 +331,11 @@ nsresult XRE_InitChildProcess(int aArgc, char* aArgv[],
NS_ENSURE_ARG_POINTER(aArgv);
NS_ENSURE_ARG_POINTER(aArgv[0]);
MOZ_ASSERT(aChildData);
NS_SetCurrentThreadName("MainThread");
recordreplay::Initialize(aArgc, aArgv);
NS_SetCurrentThreadName("MainThread");
#ifdef MOZ_ASAN_REPORTER
// In ASan reporter builds, we need to set ASan's log_path as early as
// possible, so it dumps its errors into files there instead of using