Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index c29224fffb68a5b8329ed28579ae737f6d75678e..4cc0d3e9d79114b2e55441b6395b1ecacd69deaa 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -6661,7 +6661,7 @@ void Heap::QueueMemoryChunkForFree(MemoryChunk* chunk) { |
} |
-void Heap::FreeQueuedChunks() { |
+void Heap::FilterStoreBufferEntriesOnAboutToBeFreedPages() { |
if (chunks_queued_for_free_ == NULL) return; |
MemoryChunk* next; |
MemoryChunk* chunk; |
@@ -6671,6 +6671,12 @@ void Heap::FreeQueuedChunks() { |
} |
isolate_->heap()->store_buffer()->Compact(); |
isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); |
+} |
+ |
+ |
+void Heap::FreeQueuedChunks() { |
+ MemoryChunk* next; |
+ MemoryChunk* chunk; |
for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { |
next = chunk->next_chunk(); |
isolate_->memory_allocator()->Free(chunk); |