Fix T54287: memory not freed after rendering on Linux.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 3 Oct 2018 09:10:08 +0000 (11:10 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 3 Oct 2018 10:09:31 +0000 (12:09 +0200)
commitd2da3af073a63b6ae25119ebbd2e0d3c9a1b6823
treec29a832a85eedc8628568115ed5530fe3f49587f
parentbf37c93533a64011437fd29235fe8bfd3eedd589
Fix T54287: memory not freed after rendering on Linux.

With new jemalloc versions memory allocated by threads that then become
inactive is not longer automatically freed. Instead we have to enable a
background thread to do it.

Some testing is needed to find out of this is sufficient, because the
background thread only runs periodically.
build_files/cmake/Modules/FindJeMalloc.cmake
intern/guardedalloc/CMakeLists.txt
intern/guardedalloc/intern/mallocn.c