Changeset 230415 in webkit
- Timestamp:
- Apr 9, 2018 5:59:33 AM (6 years ago)
- Location:
- releases/WebKitGTK/webkit-2.20/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.20/Source/WTF/ChangeLog
r230413 r230415 1 2018-03-25 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 3 WebProcess memory monitor: use %zu format specifier for size_t 4 https://bugs.webkit.org/show_bug.cgi?id=183997 5 6 Reviewed by Michael Catanzaro. 7 8 usse %zu format specifier for size_t instead of %lu. 9 10 * wtf/MemoryPressureHandler.cpp: 11 (WTF::MemoryPressureHandler::shrinkOrDie): 12 (WTF::MemoryPressureHandler::measurementTimerFired): 13 1 14 2018-03-23 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 15 -
releases/WebKitGTK/webkit-2.20/Source/WTF/wtf/MemoryPressureHandler.cpp
r230413 r230415 142 142 auto footprint = memoryFootprint(); 143 143 RELEASE_ASSERT(footprint); 144 RELEASE_LOG(MemoryPressure, "New memory footprint: % lu MB", footprint.value() / MB);144 RELEASE_LOG(MemoryPressure, "New memory footprint: %zu MB", footprint.value() / MB); 145 145 146 146 if (footprint.value() < thresholdForMemoryKill()) { … … 150 150 } 151 151 152 WTFLogAlways("Unable to shrink memory footprint of process (% lu MB) below the kill thresold (%lu MB). Killed\n", footprint.value() / MB, thresholdForMemoryKill() / MB);152 WTFLogAlways("Unable to shrink memory footprint of process (%zu MB) below the kill thresold (%zu MB). Killed\n", footprint.value() / MB, thresholdForMemoryKill() / MB); 153 153 RELEASE_ASSERT(m_memoryKillCallback); 154 154 m_memoryKillCallback(); … … 172 172 return; 173 173 174 RELEASE_LOG(MemoryPressure, "Current memory footprint: % lu MB", footprint.value() / MB);174 RELEASE_LOG(MemoryPressure, "Current memory footprint: %zu MB", footprint.value() / MB); 175 175 if (footprint.value() >= thresholdForMemoryKill()) { 176 176 shrinkOrDie();
Note: See TracChangeset
for help on using the changeset viewer.