Switch from mallocng to jemalloc

Now it's known how to make it free the memory in an expected manner and it's better maintained
This commit is contained in:
Ilya Fedin 2021-06-30 05:15:26 +04:00 committed by John Preston
parent cade53aa0a
commit d42fb6d1b9
4 changed files with 4 additions and 5 deletions

3
.gitmodules vendored
View File

@ -88,9 +88,6 @@
[submodule "Telegram/lib_webview"]
path = Telegram/lib_webview
url = https://github.com/desktop-app/lib_webview.git
[submodule "Telegram/ThirdParty/mallocng"]
path = Telegram/ThirdParty/mallocng
url = https://github.com/desktop-app/mallocng.git
[submodule "Telegram/lib_waylandshells"]
path = Telegram/lib_waylandshells
url = https://github.com/desktop-app/lib_waylandshells.git

View File

@ -87,7 +87,6 @@ if (LINUX)
PRIVATE
desktop-app::external_glibmm
desktop-app::external_glib
desktop-app::external_mallocng
)
if (NOT DESKTOP_APP_DISABLE_DBUS_INTEGRATION)

View File

@ -48,6 +48,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <gio/gio.h>
#include <glibmm.h>
#include <giomm.h>
#include <jemalloc/jemalloc.h>
#include <sys/stat.h>
#include <sys/types.h>
@ -740,6 +741,9 @@ int psFixPrevious() {
namespace Platform {
void start() {
auto backgroundThread = true;
mallctl("background_thread", nullptr, nullptr, &backgroundThread, sizeof(bool));
LOG(("Launcher filename: %1").arg(QGuiApplication::desktopFileName()));
#ifndef DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION

@ -1 +0,0 @@
Subproject commit 5413b277e2add1a2e5086ad75071277390770a3a