On Sat, 26 Jan 2002, Boris Tschirschwitz wrote:

> I am still writing on my complex number class.
> When trying to add addition and subtraction methods, I came across the
> following problem:
> 
> PMC functions writing results in a destination PMC like add(PMC *dest, PMC
> *val) overwrite the destination PMC's vtable and cache with new values
> without testing if it contains any old data that should be freed first.
> (see for example perlstring.pmc).
> 
> Is this something I
> 1) shouldn't worry about, because the memory is cleaned--and I am just too
>    stupid to see that
> 2) shouldn't worry about, because it will vanish with the addition of a GC
> 3) should find a soulution for, because it is a problem

#2. The GC will take care of that. We can certainly work to generate less
garbage in the first place, but the GC will take care of the memory pools.

                                        Dan

Reply via email to