[CMake] Add HAVE_MALLOC_TRIM definition
authordon.olmstead@sony.com <don.olmstead@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Aug 2018 20:08:03 +0000 (20:08 +0000)
committerdon.olmstead@sony.com <don.olmstead@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Aug 2018 20:08:03 +0000 (20:08 +0000)
commit2eb7940d9eaf90d016ffd0baf0ee54df90a7375e
tree0928eafdad50e57dd7bd6c1a1ed593653b4546ca
parentd788129675e5cb42b9c08b17519f677cbc96cac6
[CMake] Add HAVE_MALLOC_TRIM definition
https://bugs.webkit.org/show_bug.cgi?id=188897

Reviewed by Konstantin Tokarev.

.:

Add CMake check for malloc_trim.

* Source/cmake/OptionsCommon.cmake:

PerformanceTests:

MallocBench should only be built on Apple platforms and platforms that
have malloc_trim.

* CMakeLists.txt:

Source/WTF:

Use HAVE(MALLOC_TRIM) check instead of __GLIBC__.

* wtf/linux/MemoryPressureHandlerLinux.cpp:
(WTF::MemoryPressureHandler::platformReleaseMemory):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
PerformanceTests/CMakeLists.txt
PerformanceTests/ChangeLog
Source/WTF/ChangeLog
Source/WTF/wtf/linux/MemoryPressureHandlerLinux.cpp
Source/cmake/OptionsCommon.cmake