Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index 3e90e96f5ead58ad6ef6c1b7575938164697c395..332d59114b2c601b2a27ae1ac21eb8557d3ac00c 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -2988,14 +2988,10 @@ AllocationResult LargeObjectSpace::AllocateRaw(int object_size, |
size_t LargeObjectSpace::CommittedPhysicalMemory() { |
- if (!base::VirtualMemory::HasLazyCommits()) return CommittedMemory(); |
- size_t size = 0; |
- LargePage* current = first_page_; |
- while (current != NULL) { |
- size += current->CommittedPhysicalMemory(); |
- current = current->next_page(); |
- } |
- return size; |
+ // On a platform that provides lazy committing of memory, we over-account |
+ // the actually committed memory. There is no easy way right now to support |
+ // precise accounting of committed memory in large object space. |
+ return CommittedMemory(); |
} |