Skip to content

Commit f7a2612

Browse files
committed
[clangd] Release notes for b8c3715
1 parent df6cbd3 commit f7a2612

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,17 @@ Major New Features
4747
Improvements to clangd
4848
----------------------
4949

50-
The improvements are...
50+
- clangd's memory usage is significantly reduced on most Linux systems.
51+
In particular, memory usage should not increase dramatically over time.
52+
53+
The standard allocator on most systems is glibc's ptmalloc2, and it creates
54+
disproportionately large heaps when handling clangd's allocation patterns.
55+
By default, clangd will now periodically call ``malloc_trim`` to release free
56+
pages on glibc systems.
57+
58+
Users of other allocators (such as ``jemalloc`` or ``tcmalloc``) on glibc
59+
systems can disable this using ``--malloc_trim=0`` or the CMake flag
60+
``-DCLANGD_MALLOC_TRIM=0``.
5161

5262
Improvements to clang-doc
5363
-------------------------

0 commit comments

Comments
 (0)