Title: [241726] branches/safari-607-branch/Source/WebKit
- Revision
- 241726
- Author
- alanc...@apple.com
- Date
- 2019-02-18 10:19:54 -0800 (Mon, 18 Feb 2019)
Log Message
Cherry-pick r241631. rdar://problem/48165260
[PSON] Disable WebContent process cache on devices with less than 3GB of RAM
https://bugs.webkit.org/show_bug.cgi?id=194726
<rdar://problem/48126255>
Reviewed by Geoffrey Garen.
* UIProcess/WebProcessCache.cpp:
(WebKit::WebProcessCache::updateCapacity):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-607-branch/Source/WebKit/ChangeLog (241725 => 241726)
--- branches/safari-607-branch/Source/WebKit/ChangeLog 2019-02-18 18:19:52 UTC (rev 241725)
+++ branches/safari-607-branch/Source/WebKit/ChangeLog 2019-02-18 18:19:54 UTC (rev 241726)
@@ -1,5 +1,31 @@
2019-02-18 Babak Shafiei <bshaf...@apple.com>
+ Cherry-pick r241631. rdar://problem/48165260
+
+ [PSON] Disable WebContent process cache on devices with less than 3GB of RAM
+ https://bugs.webkit.org/show_bug.cgi?id=194726
+ <rdar://problem/48126255>
+
+ Reviewed by Geoffrey Garen.
+
+ * UIProcess/WebProcessCache.cpp:
+ (WebKit::WebProcessCache::updateCapacity):
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2019-02-15 Chris Dumez <cdu...@apple.com>
+
+ [PSON] Disable WebContent process cache on devices with less than 3GB of RAM
+ https://bugs.webkit.org/show_bug.cgi?id=194726
+ <rdar://problem/48126255>
+
+ Reviewed by Geoffrey Garen.
+
+ * UIProcess/WebProcessCache.cpp:
+ (WebKit::WebProcessCache::updateCapacity):
+
+2019-02-18 Babak Shafiei <bshaf...@apple.com>
+
Cherry-pick r241584. rdar://problem/48122553
Unreviewed. Fix GTK+ build after r241556
Modified: branches/safari-607-branch/Source/WebKit/UIProcess/WebProcessCache.cpp (241725 => 241726)
--- branches/safari-607-branch/Source/WebKit/UIProcess/WebProcessCache.cpp 2019-02-18 18:19:52 UTC (rev 241725)
+++ branches/safari-607-branch/Source/WebKit/UIProcess/WebProcessCache.cpp 2019-02-18 18:19:54 UTC (rev 241726)
@@ -104,10 +104,14 @@
m_capacity = 0;
} else {
size_t memorySize = ramSize() / GB;
-
- // Allow 4 processes in the cache per GB of RAM, up to 30 processes.
- m_capacity = std::min<unsigned>(memorySize * 4, 30);
- RELEASE_LOG(ProcessSwapping, "%p - WebProcessCache::updateCapacity: Cache has a capacity of %u processes", this, capacity());
+ if (memorySize < 3) {
+ m_capacity = 0;
+ RELEASE_LOG(ProcessSwapping, "%p - WebProcessCache::updateCapacity: Cache is disabled because device does not have enough RAM", this);
+ } else {
+ // Allow 4 processes in the cache per GB of RAM, up to 30 processes.
+ m_capacity = std::min<unsigned>(memorySize * 4, 30);
+ RELEASE_LOG(ProcessSwapping, "%p - WebProcessCache::updateCapacity: Cache has a capacity of %u processes", this, capacity());
+ }
}
if (!m_capacity)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes