Kaffe/Alpha - bug fix ? finally?

kaffe@rufus.w3.org kaffe@rufus.w3.org
10 Oct 2000 10:11:06 -0700


On Mon, 09 October 2000, Archie Cobbs wrote:
> It's good to hear that your assertion failure was fixed,
> but your fix sortof doesn't make sense. "osize" is the
> correct thing to copy there, because the original memory
> region presumably was only "osize" bytes long.

Pardon me if I am being dumb. Trying to debug the
assertion failure was my first brush with Kaffe sources. Could you take a minute to straighten out
the following understanding of mine of the gcRealloc()
function?

The purpose of the function is to reallocate
memory, 'mem', to size 'size'. It checks if the
current size of 'mem', 'osize', is >= 'size' + some
additional chunk. If it is, it means that 'mem'
can hold chunk of size 'size' and hence it need
not reallocate. If 'osize' is < 'size' + sizeof
(gc_unit), it has to reallocate memory to the 
requested size, 'size' and not 'osize'. 

From your message it seems like I am horribly 
mistaken in my understanding of the function.

Thanks in advance for your help.

Bharadwaj

_______________________________________________________________________

Free Unlimited Internet Access! Try it now! 
http://www.zdnet.com/downloads/altavista/index.html

_______________________________________________________________________