Changeset 244496 in webkit
- Timestamp:
- Apr 21, 2019 11:22:59 PM (5 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r244489 r244496 1 2019-04-21 Zan Dobersek <zdobersek@igalia.com> 2 3 [WTF] Generic memoryFootprint() implementation should use bmalloc on Linux 4 https://bugs.webkit.org/show_bug.cgi?id=196963 5 6 Reviewed by Don Olmstead. 7 8 Have the generic memoryFootprint() implementation use bmalloc's 9 memoryFootprint() API on Linux, whenever the system malloc option is 10 not enabled. Limitation to Linux platforms is due to the bmalloc 11 implementation being limited to those configurations (excluding iOS 12 which doesn't use MemoryFootprintGeneric.cpp). 13 14 * wtf/PlatformWPE.cmake: Switch to building MemoryFootprintGeneric.cpp. 15 * wtf/generic/MemoryFootprintGeneric.cpp: 16 (WTF::memoryFootprint): 17 1 18 2019-04-19 Ryosuke Niwa <rniwa@webkit.org> 2 19 -
trunk/Source/WTF/wtf/PlatformWPE.cmake
r241654 r244496 15 15 16 16 generic/MainThreadGeneric.cpp 17 generic/MemoryFootprintGeneric.cpp 17 18 generic/WorkQueueGeneric.cpp 18 19 … … 24 25 25 26 linux/CurrentProcessMemoryStatus.cpp 26 linux/MemoryFootprintLinux.cpp27 27 linux/MemoryPressureHandlerLinux.cpp 28 28 -
trunk/Source/WTF/wtf/generic/MemoryFootprintGeneric.cpp
r237099 r244496 27 27 #include <wtf/MemoryFootprint.h> 28 28 29 #if !(defined(USE_SYSTEM_MALLOC) && USE_SYSTEM_MALLOC) && OS(LINUX) 30 #include <bmalloc/bmalloc.h> 31 #endif 32 29 33 namespace WTF { 30 34 31 35 size_t memoryFootprint() 32 36 { 37 #if !(defined(USE_SYSTEM_MALLOC) && USE_SYSTEM_MALLOC) && OS(LINUX) 38 return bmalloc::api::memoryFootprint(); 39 #else 33 40 return 0; 41 #endif 34 42 } 35 43
Note: See TracChangeset
for help on using the changeset viewer.