зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1264948 part 2 - Assert when we allocate new chunks using an infallible allocator. r=jonco,h4writer
This commit is contained in:
Родитель
3de3fdc276
Коммит
5c9800f1b8
|
@ -102,6 +102,7 @@ LifoAlloc::getOrCreateChunk(size_t n)
|
|||
}
|
||||
|
||||
// If we get here, we couldn't find an existing BumpChunk to fill the request.
|
||||
MOZ_ASSERT(fallibleScope_, "[OOM] Cannot allocate a new chunk in an infallible scope.");
|
||||
BumpChunk* newChunk = BumpChunk::new_(chunkSize);
|
||||
if (!newChunk)
|
||||
return nullptr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче