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

Unified Diff: third_party/WebKit/Source/platform/heap/PageMemory.h

Issue 2942233002: Add some support for promptly purging pages.
Patch Set: add MADV_FREE fallback Created 3 years, 6 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
Index: third_party/WebKit/Source/platform/heap/PageMemory.h
diff --git a/third_party/WebKit/Source/platform/heap/PageMemory.h b/third_party/WebKit/Source/platform/heap/PageMemory.h
index c985915197bef7132d931f28814d031b878885c7..a0bf2c1582a697d57056d6304bbd14059e001d98 100644
--- a/third_party/WebKit/Source/platform/heap/PageMemory.h
+++ b/third_party/WebKit/Source/platform/heap/PageMemory.h
@@ -34,7 +34,7 @@ class MemoryRegion {
void Release();
WARN_UNUSED_RESULT bool Commit();
- void Decommit();
+ void Decommit(DecommitMemoryTiming);
Address Base() const { return base_; }
size_t size() const { return size_; }
@@ -180,9 +180,9 @@ class PageMemory {
return writable_.Commit();
}
- void Decommit() {
+ void Decommit(DecommitMemoryTiming decommit_hint) {
reserved_->MarkPageUnused(WritableStart());
- writable_.Decommit();
+ writable_.Decommit(decommit_hint);
}
void MarkUnused() { reserved_->MarkPageUnused(WritableStart()); }
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapPage.cpp ('k') | third_party/WebKit/Source/platform/heap/PageMemory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698