On Jan 12, 2010, at 1:52 PM, Sean McBride wrote:
> I guess when dealing with Obj-C objects, NSZombieEnabled=YES together
> with NSDeallocateZombies=NO does #2 and sorta does #3.
> 
> But, as I said, I was wondering if there is a way to extend this to all
> allocations (ie non-objects).  Additionally, NSZombieEnabled does
> nothing under GC, and I'd be interesting in knowing if there is
> something similar for that case.

Guard Malloc is the heavyweight catch-everything guard. It memory-protects all 
freed blocks, both objects and non-objects. But the cost is a big performance 
hit in time and space.

On Snow Leopard, AUTO_USE_GUARDS=YES is similar to Guard Malloc for 
GC-allocated memory. 


-- 
Greg Parker     gpar...@apple.com     Runtime Wrangler

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to