[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] #bug 27235 issue 2
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] #bug 27235 issue 2 |
Date: |
Wed, 6 Jan 2010 10:03:04 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
As Boyapati, Anitha wrote:
> Ok. I got it. The issue is talking about the case when all the free
> *heap* (or 'cake' as you put it) is exhausted; but has a malloc'ed &
> free'd chunk (or realloc'ed) at the end in which case the 'top
> address'(?) should be allowed to move backwards.
Yes, that's the issue here. As the top address (__brkval) never moves
back, the free space maintained by the freelist and the "cake" above
the top address are not considered to be adjacent, so if a new request
could not be satisfied from the freelist, the entire request will be
obtained from space beyond the current top where extending the current
top would have sufficed.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)