Re: How morecore() works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 6, 2009 at 1:55 AM, Nitin Saxena<nitinsaxena1710@xxxxxxxxx> wrote:
> Hi Friends,
>
> Can anybody please tell me how does __morecore() functions works in malloc()
> implementation of glibc ?

This isn't really kernel related - but as you can see[1], it just
calls sbrk to adjust the size of the heap, and returns the old end of
the heap (thus, the space between the old end and the new end is newly
allocated).

[1] - http://xrl.us/bfi4bz (google codesearch display of glibc-2.5)

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux