1
0
Fork 0
Commit graph

17 commits

Author SHA1 Message Date
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
Ilya Fedin
167a914da5 Add jemalloc initialization helper 2022-02-01 14:38:31 +03:00
Ilya Fedin
c2b070275e Remove gtk and glib helpers
They're Qt patches now
2021-11-30 17:42:31 +04:00
Ilya Fedin
d5237e224e Make -Wl,-z,now work on older systems 2021-11-02 09:42:00 +04:00
Ilya Fedin
a8856aa831 Add Qt 6 support
Tested on Linux only
2021-10-21 08:44:20 +04:00
Ilya Fedin
aa5afd0a41 Add glib helper to make it optional for Qt 2021-09-12 00:02:59 +03:00
Ilya Fedin
95ee188c7b Get rid of GTK integration 2021-09-05 17:37:54 +03:00
23rd
95a3953c21 Fixed typo in name of GTK integration option. 2021-07-04 01:31:43 +03:00
John Preston
e2455f3194 Add dynamic DirectX loading helper. 2021-07-01 23:44:35 +03:00
Ilya Fedin
cb92f08d51 Enable Qt's gtk integration 2021-07-01 21:02:04 +03:00
Ilya Fedin
4a63a30c17 Get rid of unneeded glibc wraps 2021-06-29 17:02:16 +03:00
John Preston
42d3840cde Add simple allocation tracer on Linux. 2021-05-14 15:09:28 +04:00
Ilya Fedin
6d1b48811e Fix build without Wayland of static binary 2021-04-29 20:32:56 +03:00
Ilya Fedin
4e7ec4e0e1 Move wayland helper from lib_base here 2021-04-29 20:15:25 +03:00
John Preston
632ed315b2 Introduce DESKTOP_APP_USE_PACKAGED. 2019-12-06 13:12:04 +03:00
John Preston
af968dc8ea Initial Linux build. 2019-12-03 19:06:31 +03:00
John Preston
2a87436d39 Initial commit. 2019-11-18 00:32:53 +03:00