Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: src/heap/heap.h

Issue 1303263002: Concurrently unmap free pages. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | src/heap/heap.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 415e7d0c5ee569ea458263beb294efc1245cead9..88d49cff421d7389d6c7df9c8c9b7787bd32bf17 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -1442,7 +1442,9 @@ class Heap {
void QueueMemoryChunkForFree(MemoryChunk* chunk);
void FilterStoreBufferEntriesOnAboutToBeFreedPages();
+ void FreeQueuedChunks(MemoryChunk* list_head);
void FreeQueuedChunks();
+ void WaitUntilUnmappingOfFreeChunksCompleted();
int gc_count() const { return gc_count_; }
@@ -1681,6 +1683,8 @@ class Heap {
private:
Heap();
+ class UnmapFreeMemoryTask;
Michael Lippautz 2015/08/21 12:28:58 Move to the top of the private section.
Hannes Payer (out of office) 2015/08/21 12:56:04 Done.
+
int current_gc_flags() { return current_gc_flags_; }
void set_current_gc_flags(int flags) {
current_gc_flags_ = flags;
@@ -2299,6 +2303,8 @@ class Heap {
MemoryChunk* chunks_queued_for_free_;
+ base::Semaphore pending_unmap_job_semaphore_;
+
base::Mutex relocation_mutex_;
int gc_callbacks_depth_;
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | src/heap/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698