This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/14581] memalign allocations are often not reused after free


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]