Bug 1908789 - Check for null return from MakePreallocProcess, r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D217103
This commit is contained in:
@@ -316,6 +316,14 @@ void PreallocatedProcessManagerImpl::AllocateNow() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
UniqueContentParentKeepAlive process = ContentParent::MakePreallocProcess();
|
UniqueContentParentKeepAlive process = ContentParent::MakePreallocProcess();
|
||||||
|
if (!process) {
|
||||||
|
// We fully failed to create a prealloc process. Don't try to kick off a new
|
||||||
|
// preallocation here, to avoid possible looping.
|
||||||
|
MOZ_LOG(ContentParent::GetLog(), LogLevel::Debug,
|
||||||
|
("Failed to launch prealloc process"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
process->WaitForLaunchAsync(PROCESS_PRIORITY_PREALLOC)
|
process->WaitForLaunchAsync(PROCESS_PRIORITY_PREALLOC)
|
||||||
->Then(
|
->Then(
|
||||||
GetCurrentSerialEventTarget(), __func__,
|
GetCurrentSerialEventTarget(), __func__,
|
||||||
|
|||||||
Reference in New Issue
Block a user