[PATCH] D93452: [clangd] Trim memory periodically

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 18 11:03:15 PST 2020


MaskRay added inline comments.


================
Comment at: llvm/lib/Support/Unix/Process.inc:122
+#if defined(HAVE_MALLOC_TRIM)
+  return malloc_trim(Pad);
+#else
----------------
If the user uses jemalloc/tcmalloc with glibc, malloc_trim may exist while the function may do nothing.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93452/new/

https://reviews.llvm.org/D93452



More information about the llvm-commits mailing list