This is the mail archive of the glibc-bugs@sources.redhat.com 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 libc/617] malloc(10396) actually allocates 4 less bytes


------- Additional Comments From bugzilla1 at malloc dot de  2004-12-28 16:07 -------
>  As far as I know, the internal management data structure 
> of malloc is called "malloc_chunk"(see bellow). The fields 
> <prev_size> and <size> are the space overhead of management. 
> They are 8 bytes in total.

No, the _overhead_ is only 4 bytes.  prev_size is only used
when the chunk is "free" (i.e. not under user control).

It is always guranteed that there is a following chunk, i.e.
one whose prev_size file can be used for user data.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sources.redhat.com/bugzilla/show_bug.cgi?id=617

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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