Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index fa366eefb6b6a2e5003aa1efe550bd74c4a7ca4f..1992c23925a061d7d334d12dc69b43dbc25b162e 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -2128,11 +2128,12 @@ void MarkCompactCollector::EnsureMarkingDequeIsCommittedAndInitialize() { |
marking_deque_memory_ = new base::VirtualMemory(4 * MB); |
} |
if (!marking_deque_memory_committed_) { |
- bool success = marking_deque_memory_->Commit( |
- reinterpret_cast<Address>(marking_deque_memory_->address()), |
- marking_deque_memory_->size(), |
- false); // Not executable. |
- CHECK(success); |
+ if (!marking_deque_memory_->Commit( |
+ reinterpret_cast<Address>(marking_deque_memory_->address()), |
+ marking_deque_memory_->size(), |
+ false)) { // Not executable. |
+ V8::FatalProcessOutOfMemory("EnsureMarkingDequeIsCommitted"); |
+ } |
marking_deque_memory_committed_ = true; |
InitializeMarkingDeque(); |
} |