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/15321] malloc/free can't give the memory back to kernel when main_arena is discontinous


http://sourceware.org/bugzilla/show_bug.cgi?id=15321

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

--- Comment #3 from Florian Weimer <fweimer at redhat dot com> 2013-04-02 11:06:32 UTC ---
(In reply to comment #0)
> What it does:
> 1.Call malloc() to allocate 1024*4kB memory 
> 2.Call mmap()
> 3.Call malloc() and allocate 4096kB memory again
> 4.Call system to inspect the MemFree
> 5.Call free()
> 6.Call system to inspect the MemFree again

I'm not sure this test case is valid.  Without compaction (which tends to break
C semantics), you can always find a sequence of allocations that result in
fragmentation.  As Ondrej said, as long as the test reaches a steady state when
executed in a loop, this is not a bug.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]