Skip to content

Commit

Permalink
Bug 1638293 - Fix missing definition of self in BaseProcessLauncher. …
Browse files Browse the repository at this point in the history
…r=jld

Differential Revision: https://phabricator.services.mozilla.com/D76004
  • Loading branch information
gcp committed May 22, 2020
1 parent 3e1783d commit c7ba678
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ipc/glue/GeckoChildProcessHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1026,21 +1026,23 @@ RefPtr<ProcessLaunchPromise> BaseProcessLauncher::PerformAsyncLaunch() {
}

bool BaseProcessLauncher::DoSetup() {
#ifdef MOZ_GECKO_PROFILER
#if defined(MOZ_GECKO_PROFILER) || defined(MOZ_MEMORY)
RefPtr<BaseProcessLauncher> self = this;
# ifdef MOZ_GECKO_PROFILER
GetProfilerEnvVarsForChildProcess([self](const char* key, const char* value) {
self->mLaunchOptions->env_map[ENVIRONMENT_STRING(key)] =
ENVIRONMENT_STRING(value);
});
#endif
#ifdef MOZ_MEMORY
# endif
# ifdef MOZ_MEMORY
if (mProcessType == GeckoProcessType_Content) {
nsAutoCString mallocOpts(PR_GetEnv("MALLOC_OPTIONS"));
// Disable randomization of small arenas in content.
mallocOpts.Append("r");
self->mLaunchOptions->env_map[ENVIRONMENT_LITERAL("MALLOC_OPTIONS")] =
ENVIRONMENT_STRING(mallocOpts.get());
}
# endif
#endif

MapChildLogging();
Expand Down

0 comments on commit c7ba678

Please sign in to comment.