Bug 1264948 part 2 - Assert when we allocate new chunks using an infallible allocator. r=jonco,h4writer

This commit is contained in:
Nicolas B. Pierron 2016-07-05 13:38:18 +00:00
Родитель 3de3fdc276
Коммит 5c9800f1b8
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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;