Skip to content
Commit 66b2cc4d authored by Philipp Knechtges's avatar Philipp Knechtges
Browse files

libkworkspace: tuning glibc allocator

Some applications like kwin suffer from heap fragmentation
when using the raster graphicssystem. This patch provides a function
that forces glibc to shrink the heap more often.
Now 5*pagesize(=20kB on a typical x86 system) of unused space at the
end of the heap are enough to force free()
to release this space. The default threshold is 128kB which is too much
for an average kworkspace application.

REVIEW: 101385
(cherry picked from commit d8949d77)
parent 51bdd3bc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment