| Index: src/heap/spaces.cc
|
| diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
|
| index 1ab5de737919cbe8d92fd9e0a31985144132aa7c..611a2984602ee9d934141bae0b8ba1e4c947be6d 100644
|
| --- a/src/heap/spaces.cc
|
| +++ b/src/heap/spaces.cc
|
| @@ -880,7 +880,9 @@ MemoryChunk* MemoryAllocator::AllocatePagePooled(SpaceType* owner) {
|
| const Address start = reinterpret_cast<Address>(chunk);
|
| const Address area_start = start + MemoryChunk::kObjectStartOffset;
|
| const Address area_end = start + size;
|
| - CommitBlock(reinterpret_cast<Address>(chunk), size, NOT_EXECUTABLE);
|
| + if (!CommitBlock(reinterpret_cast<Address>(chunk), size, NOT_EXECUTABLE)) {
|
| + return nullptr;
|
| + }
|
| base::VirtualMemory reservation(start, size);
|
| MemoryChunk::Initialize(isolate_->heap(), start, size, area_start, area_end,
|
| NOT_EXECUTABLE, owner, &reservation);
|
|
|