avr-libc-dev
[Top][All Lists]
Advanced

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

[avr-libc-dev] [patch #6935] Patch for malloc()


From: Michael Baeuerle
Subject: [avr-libc-dev] [patch #6935] Patch for malloc()
Date: Tue, 08 Jun 2010 13:40:40 +0000
User-agent: Dillo/2.2

Follow-up Comment #2, patch #6935 (project avr-libc):

The problem was that the memory beyond the last used chunk was not always
available. If malloc() is called with a size that fits after the last used
chunk but is larger than every block in the freelist and larger than the
unused space beyond the freelist, the request was rejected.
The patch let malloc() delete the last block from the freelist before the new
chunk is allocated.
If free() can now ensure that the freelist always end before the last used
chunk, this situation can no longer occur and this patch for malloc() is not
needed.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6935>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]