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

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') | no next file with comments »
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 0d7b77d0765723218213ceeecca9b9953574f8cc..ad1a6e8cbed53e688c25de7647401809d6f5728a 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_; }
@@ -1619,6 +1621,8 @@ class Heap {
bool ShouldOptimizeForMemoryUsage() { return optimize_for_memory_usage_; }
private:
+ class UnmapFreeMemoryTask;
+
static const int kInitialStringTableSize = 2048;
static const int kInitialEvalCacheSize = 64;
static const int kInitialNumberStringCacheSize = 256;
@@ -2296,6 +2300,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698