Check __GLIBC__ for malloc_trim instead of __linux__ (#230)

This commit is contained in:
yshui 2018-01-05 02:55:11 +08:00 committed by Fangrui Song
parent 22ef88045f
commit e2ce134e1f

View File

@ -259,7 +259,7 @@ std::vector<std::string> GetPlatformClangArguments() {
}
void FreeUnusedMemory() {
#if defined(__linux__)
#if defined(__GLIBC__)
malloc_trim(0);
#endif
}