Title: [252224] trunk/Source/bmalloc
- Revision
- 252224
- Author
- [email protected]
- Date
- 2019-11-07 17:29:07 -0800 (Thu, 07 Nov 2019)
Log Message
[bmalloc] Bug fix for wait time when it's in mini mode.
https://bugs.webkit.org/show_bug.cgi?id=203121
Reviewed by Saam Barati.
Basuke pointed out that we never changed m_waitTime in scavenger when we are in iOS and mini-mode.
So previously, we are always executing scavenger for each 10ms in mini-mode. After fixing it, we
found that this unintentional behavior was better policy for RAMification.
In this patch, we explicitly use the old behavior, "scavenge for each 10ms" in iOS mini-mode.
We should revisit scavenger's behavior in the future to explore further better behavior.
* bmalloc/Scavenger.cpp:
(bmalloc::Scavenger::threadRunLoop):
Modified Paths
Diff
Modified: trunk/Source/bmalloc/ChangeLog (252223 => 252224)
--- trunk/Source/bmalloc/ChangeLog 2019-11-08 01:18:14 UTC (rev 252223)
+++ trunk/Source/bmalloc/ChangeLog 2019-11-08 01:29:07 UTC (rev 252224)
@@ -1,3 +1,19 @@
+2019-11-07 Basuke Suzuki <[email protected]> and Yusuke Suzuki <[email protected]>
+
+ [bmalloc] Bug fix for wait time when it's in mini mode.
+ https://bugs.webkit.org/show_bug.cgi?id=203121
+
+ Reviewed by Saam Barati.
+
+ Basuke pointed out that we never changed m_waitTime in scavenger when we are in iOS and mini-mode.
+ So previously, we are always executing scavenger for each 10ms in mini-mode. After fixing it, we
+ found that this unintentional behavior was better policy for RAMification.
+ In this patch, we explicitly use the old behavior, "scavenge for each 10ms" in iOS mini-mode.
+ We should revisit scavenger's behavior in the future to explore further better behavior.
+
+ * bmalloc/Scavenger.cpp:
+ (bmalloc::Scavenger::threadRunLoop):
+
2019-11-06 Yusuke Suzuki <[email protected]>
Unreviewed, roll-out r251268 due to RAMification regression
Modified: trunk/Source/bmalloc/bmalloc/Scavenger.cpp (252223 => 252224)
--- trunk/Source/bmalloc/bmalloc/Scavenger.cpp 2019-11-08 01:18:14 UTC (rev 252223)
+++ trunk/Source/bmalloc/bmalloc/Scavenger.cpp 2019-11-08 01:29:07 UTC (rev 252224)
@@ -495,15 +495,11 @@
static_cast<double>(std::chrono::duration_cast<std::chrono::microseconds>(timeSpentScavenging).count()) / 1000);
}
- std::chrono::milliseconds newWaitTime;
-
- if (m_isInMiniMode) {
- timeSpentScavenging *= 50;
- newWaitTime = std::chrono::duration_cast<std::chrono::milliseconds>(timeSpentScavenging);
- newWaitTime = std::min(std::max(newWaitTime, std::chrono::milliseconds(25)), std::chrono::milliseconds(500));
- } else {
+ // FIXME: We need to investigate mini-mode's adjustment.
+ // https://bugs.webkit.org/show_bug.cgi?id=203987
+ if (!m_isInMiniMode) {
timeSpentScavenging *= 150;
- newWaitTime = std::chrono::duration_cast<std::chrono::milliseconds>(timeSpentScavenging);
+ std::chrono::milliseconds newWaitTime = std::chrono::duration_cast<std::chrono::milliseconds>(timeSpentScavenging);
m_waitTime = std::min(std::max(newWaitTime, std::chrono::milliseconds(100)), std::chrono::milliseconds(10000));
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes