1
0
Fork 0
No description
Find a file
Klemens Nanni ddd1ee547d Introduce DESKTOP_APP_DISABLE_JEMALLOC to enable using system malloc
On at least OpenBSD, malloc(3) is preferred to other implementations
like jemalloc for various reasons.

It is common for portable third-party software (ports) to provide a
switch for en/disabling jemalloc.

tdesktop makes this easy since it does not contain any (je)malloc
specific code (anymore).

Introduce a new default-off option that disables jemalloc when enabled
explicitly;  this also allow developers and package maintainers more
easily to try different malloc implementations, e.g. for debugging.

Memory leaks reported in the slightly old issue
"The app consumes an unexpectedly large amount of RAM"
https://github.com/telegramdesktop/tdesktop/issues/16084 could not
be reproduced on OpenBSD/amd64 with malloc(3) using tdesktop >= 3.3.1.
2022-02-27 19:58:36 +03:00
external Introduce DESKTOP_APP_DISABLE_JEMALLOC to enable using system malloc 2022-02-27 19:58:36 +03:00
linux_allocation_tracer Move flags non-qt-related flags from external_qt to common_options 2021-08-08 09:26:18 +03:00
linux_jemalloc_helper Use proper spelling for __FreeBSD__ pre-processor define. 2022-02-08 19:10:23 +03:00
linux_wayland_helper Use linux linking helpers without LINK_ONLY 2022-02-01 14:38:31 +03:00
linux_xcb_helper Move libdl/libpthread handling to common_options 2022-01-05 12:54:40 +03:00
win_directx_helper Fixed Github CI Windows build. 2021-08-11 05:53:00 +03:00
CMakeLists.txt Introduce DESKTOP_APP_DISABLE_JEMALLOC to enable using system malloc 2022-02-27 19:58:36 +03:00
generate_target.cmake Initial Linux build. 2019-12-03 19:06:31 +03:00
init_target.cmake Disable LTCG for 64 bit Windows build. 2021-11-27 21:35:13 +04:00
nice_target_sources.cmake Add remove_target_sources() function. 2020-06-29 20:11:16 +04:00
nuget.cmake Fix some file headers. 2021-07-20 15:38:17 +03:00
options.cmake Use bundled fonts and rlottie by default since they're patched 2022-01-13 04:33:23 +03:00
options_linux.cmake Introduce DESKTOP_APP_DISABLE_JEMALLOC to enable using system malloc 2022-02-27 19:58:36 +03:00
options_mac.cmake Fix warning in linking with FFMpeg. 2021-10-25 23:12:56 +04:00
options_win.cmake Link PropSys.lib on Windows. 2021-10-05 21:58:06 +04:00
run_cmake.py Use Ninja Multi-Config generator by default on Linux. 2021-11-14 11:29:38 +04:00
target_link_frameworks.cmake Initial build with Xcode. 2019-11-25 18:39:08 +03:00
target_link_static_libraries.cmake Use -Bstatic compiler option rather than find_library 2022-01-22 19:48:20 +03:00
target_prepare_qrc.cmake Allow loading Qt resources from a file on macOS. 2021-10-27 20:39:39 +04:00
validate_d3d_compiler.cmake Add loading of custom shipped d3dcompiler_47.dll. 2021-07-20 15:38:58 +03:00
validate_d3d_compiler.py Use d3dcompiler from 20.0.22000.0 SDK. 2021-11-26 18:13:10 +04:00
validate_special_target.cmake Force mac architecture and deployment target only in non-packaged builds 2021-12-09 17:44:27 +04:00
variables.cmake Introduce DESKTOP_APP_DISABLE_JEMALLOC to enable using system malloc 2022-02-27 19:58:36 +03:00
version.cmake Fix major version parsing. 2020-03-30 16:55:42 +04:00