-------- Original-Nachricht --------
> Datum: Wed, 25 Jan 2012 11:38:07 +0100
> Von: Riccardo Mottola <[email protected]>
> An: [email protected]
> Betreff: Re: error with runtime includes

> Hi,
> >> I see only class_getInstanceSize(), do you see something else?
> >
> > Yes, I see ((struct objc_class *) self)->instance_size and this
> > shouldn't be used anywhere.
> If you see, class_getInstanceSize gets used on any modern apple runtime 
> and the gnustep runtime. the other access remains active only for older 
> apple (my 10.3 and 10.4 computers)
> >
> > But I also think that the  super dealloc call in -dealloc is wrong. It
> > would be better if the whole object pool code gets never used.
> Here you have lost me, sorry.

That code should not deallocate the object as it wants to reuse the occupied 
space with the pool. A call to super dealloc will most likely end up in 
NSDeallocateObject() and this will free the memory the pool wants to reuse.

_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to