2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

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

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