We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1c01fc commit b9d070fCopy full SHA for b9d070f
deps/v8/src/heap/heap.cc
@@ -7653,6 +7653,7 @@ StrongRootAllocatorBase::StrongRootAllocatorBase(LocalIsolate* isolate)
7653
// returns a pointer to Address 1.
7654
Address* StrongRootAllocatorBase::allocate_impl(size_t n) {
7655
void* block = base::Malloc(sizeof(StrongRootsEntry*) + n * sizeof(Address));
7656
+ if(!block) heap()->FatalProcessOutOfMemory("StrongRootAllocatorBase::allocate_impl");
7657
7658
StrongRootsEntry** header = reinterpret_cast<StrongRootsEntry**>(block);
7659
Address* ret = reinterpret_cast<Address*>(reinterpret_cast<char*>(block) +
0 commit comments