Skip to content

Commit

Permalink
Check __GLIBC__ for malloc_trim instead of __linux__ (jacobdufault#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
yshui authored and MaskRay committed Jan 4, 2018
1 parent 2b567a4 commit 903c94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ std::vector<std::string> GetPlatformClangArguments() {
}

void FreeUnusedMemory() {
#if defined(__linux__)
#if defined(__GLIBC__)
malloc_trim(0);
#endif
}
Expand Down

0 comments on commit 903c94b

Please sign in to comment.