[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error with runtime includes
From: |
Fred Kiefer |
Subject: |
Re: error with runtime includes |
Date: |
Wed, 25 Jan 2012 12:35:40 +0100 |
-------- Original-Nachricht --------
> Datum: Wed, 25 Jan 2012 11:38:07 +0100
> Von: Riccardo Mottola <address@hidden>
> An: address@hidden
> 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.