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

Unified Diff: third_party/WebKit/Source/platform/heap/Heap.cpp

Issue 1666083002: Oilpan: Discard unused system pages when sweeping NormalPageHeaps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/Heap.cpp
diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
index 2722570e03b57ce1daa632727c86c2dfd9b09fee..8a414e3ec0378d68a144275f1cf59b6561e47c60 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.cpp
+++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
@@ -30,6 +30,7 @@
#include "platform/heap/Heap.h"
+#include "base/sys_info.h"
#include "platform/Histogram.h"
#include "platform/ScriptForbiddenScope.h"
#include "platform/TraceEvent.h"
@@ -174,6 +175,7 @@ void Heap::init()
s_collectedWrapperCount = 0;
s_partitionAllocSizeAtLastGC = WTF::Partitions::totalSizeOfCommittedPages();
s_estimatedMarkingTimePerByte = 0.0;
+ s_isLowEndDevice = base::SysInfo::IsLowEndDevice();
#if ENABLE(ASSERT)
s_gcGeneration = 1;
#endif
@@ -725,6 +727,7 @@ size_t Heap::s_wrapperCountAtLastGC = 0;
size_t Heap::s_collectedWrapperCount = 0;
size_t Heap::s_partitionAllocSizeAtLastGC = 0;
double Heap::s_estimatedMarkingTimePerByte = 0.0;
+bool Heap::s_isLowEndDevice = false;
#if ENABLE(ASSERT)
uint16_t Heap::s_gcGeneration = 0;
#endif
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Heap.h ('k') | third_party/WebKit/Source/platform/heap/HeapPage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698