This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/14581] memalign allocations are often not reused after free
- From: "mika.fischer at zoopnet dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 07 May 2019 17:30:04 +0000
- Subject: [Bug malloc/14581] memalign allocations are often not reused after free
- Auto-submitted: auto-generated
- References: <bug-14581-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=14581
Mika Fischer <mika.fischer at zoopnet dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mika.fischer at zoopnet dot de
--- Comment #15 from Mika Fischer <mika.fischer at zoopnet dot de> ---
Created attachment 11763
--> https://sourceware.org/bugzilla/attachment.cgi?id=11763&action=edit
Example case for image processing use-case
We hit this issue (or at least I assume it is this issue) in production.
Our use-case is that we have a loop with:
- two large aligned allocations (large temporary images)
- followed by a small unaligned allocation (the result)
- the large allocations are freed, the small result is kept
For some sizes (see attached program) this leads to glibc never freeing any
memory! The attached program demonstrates the issue. It runs out of memory in
seconds...
--
You are receiving this mail because:
You are on the CC list for the bug.