Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use malloc_trim on Term reset_state #8155

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kchibisov
Copy link
Member

This prevents the memory with glibc allocator from sticking around and just results in address space fragmentation until you close the given alacritty window.

--

I'm not sure how good idea that is, but it seems to kind of solve #5438 .

This issue is also less noticeable with the default mimalloc settings.

The main issue with this thing is that it's relatively slow when you have a lot of junk and it's likely not a great way to solve this, but it really seems that we're just fighting the allocator.

probably the better option is to figure out what exactly breaks the ability of glibc allocator to release everything back.

Draft because I have no idea whether it's a good solution for that...

This prevents the memory with glibc allocator from sticking around and
just results in address space fragmentation until you close the given
alacritty window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant