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/


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to