discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSZone pointers


From: Stefan Bidi
Subject: Re: NSZone pointers
Date: Thu, 21 Jul 2011 17:26:18 -0500

Just wondering... how's CoreFoundation affected by this?  CFAllocators (NSZone's equivalent) is everywhere.  Does it also get disregarded?  I've been overlooking CFAllocator for a while now, so I would prefer if it wasn't used at all, too.

On Thu, Jul 21, 2011 at 1:51 PM, David Chisnall <theraven@sucs.org> wrote:
On 21 Jul 2011, at 14:27, David Chisnall wrote:

> On 21 Jul 2011, at 14:16, Ivan Vučica wrote:
>
>> I didn't even bother looking up what zones are for until now.
>
> They're not used very much anymore, because half of Cocoa is not zone-aware.  On OS X, zones are opaque, so they're not even very useful, they just act as hints for the allocation policy.

Oh, and apparently I missed that in Objective-C 2 they were removed.  +allocWithZone: on OS X now apparently ignores the zone pointer and -zone always returns the default malloc() zone.

David
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep


reply via email to

[Prev in Thread] Current Thread [Next in Thread]