Skip to content

Implement DESKTOP_APP_REQUIRE_JEMALLOC switch#16717

Open
mymedia2 wants to merge 1 commit intotelegramdesktop:devfrom
mymedia2:patch-29
Open

Implement DESKTOP_APP_REQUIRE_JEMALLOC switch#16717
mymedia2 wants to merge 1 commit intotelegramdesktop:devfrom
mymedia2:patch-29

Conversation

@mymedia2
Copy link
Contributor

// Detect the case and configure the allocator.

Dl_info info;
int rc = dladdr(reinterpret_cast<void*>(&malloc), &info);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const?

@ilya-fedin
Copy link
Contributor

Feels too hackish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants