Title: [209360] trunk/Source/WebCore
- Revision
- 209360
- Author
- [email protected]
- Date
- 2016-12-05 15:27:50 -0800 (Mon, 05 Dec 2016)
Log Message
Reduce number of platformMemoryUsage calls
https://bugs.webkit.org/show_bug.cgi?id=164375
Reviewed by Darin Adler.
Removed the calls to WTF::releaseFastMallocFreeMemory (it's already
called elsewhere in the free-all-memory pipeline) and
malloc_zone_pressure_relief (it should be called by the OS on its own
terms).
No new tests -- no new or changed features.
* platform/cocoa/MemoryPressureHandlerCocoa.mm:
(WebCore::MemoryPressureHandler::ReliefLogger::platformMemoryUsage):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (209359 => 209360)
--- trunk/Source/WebCore/ChangeLog 2016-12-05 23:19:14 UTC (rev 209359)
+++ trunk/Source/WebCore/ChangeLog 2016-12-05 23:27:50 UTC (rev 209360)
@@ -1,3 +1,20 @@
+2016-12-05 Keith Rollin <[email protected]>
+
+ Reduce number of platformMemoryUsage calls
+ https://bugs.webkit.org/show_bug.cgi?id=164375
+
+ Reviewed by Darin Adler.
+
+ Removed the calls to WTF::releaseFastMallocFreeMemory (it's already
+ called elsewhere in the free-all-memory pipeline) and
+ malloc_zone_pressure_relief (it should be called by the OS on its own
+ terms).
+
+ No new tests -- no new or changed features.
+
+ * platform/cocoa/MemoryPressureHandlerCocoa.mm:
+ (WebCore::MemoryPressureHandler::ReliefLogger::platformMemoryUsage):
+
2016-12-05 Dave Hyatt <[email protected]>
[CSS Parser] Leave the Animation type alone when the property is invalid
Modified: trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm (209359 => 209360)
--- trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm 2016-12-05 23:19:14 UTC (rev 209359)
+++ trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm 2016-12-05 23:27:50 UTC (rev 209360)
@@ -188,11 +188,6 @@
size_t MemoryPressureHandler::ReliefLogger::platformMemoryUsage()
{
- // Flush free memory back to the OS before every measurement.
- // Note that this code only runs when detailed pressure relief logging is enabled.
- WTF::releaseFastMallocFreeMemory();
- malloc_zone_pressure_relief(nullptr, 0);
-
task_vm_info_data_t vmInfo;
mach_msg_type_number_t count = TASK_VM_INFO_COUNT;
kern_return_t err = task_info(mach_task_self(), TASK_VM_INFO, (task_info_t) &vmInfo, &count);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes