Files
haproxy/src
Willy Tarreau 26ed183556 MINOR: pools: call malloc_trim() under thread isolation
pool_gc() was adjusted to run under thread isolation by commit c0e2ff202
("MEDIUM: memory: make pool_gc() run under thread isolation") so that the
underlying malloc() and free() don't compete between threads during these
potentially aggressive moments (especially when mmap/munmap are involved).

Commit 88366c292 ("MEDIUM: pools: call malloc_trim() from pool_gc()")
later added a call to malloc_trim() but made it outside of the thread
isolation, which is contrary to the principle explained above. Also it
missed it in the locked version, meaning that those without a lockless
implementation cannot benefit from trimming.

This patch fixes that by calling it before thread_release() in both
places.
2021-06-10 17:46:50 +02:00
..
2021-05-08 12:29:51 +02:00
2021-06-08 11:17:19 +02:00
2021-05-08 20:35:39 +02:00
2021-06-08 11:17:19 +02:00
2021-05-08 20:24:09 +02:00
2021-05-08 12:29:01 +02:00