Re: Leaks not showing my leak
Re: Leaks not showing my leak
- Subject: Re: Leaks not showing my leak
- From: Eric Albert <email@hidden>
- Date: Thu, 14 Jul 2005 22:07:01 -0700
On Jul 14, 2005, at 8:14 PM, Tom Bernard wrote:
Also, doesn't malloc return long-aligned blocks? Can malloc ever return
byte-aligned blocks?
I'm not one of Apple's resident malloc experts, but I'll try to answer
this anyway.
I believe that allocations of 16 bytes or more through malloc will
always be 16-byte aligned. If they weren't, you wouldn't be able to
use them for AltiVec or aligned SSE operations without first aligning
your data. But I don't think we'd want to make any guarantees about
the alignment of small malloc'd blocks.
Also, when running with Guard Malloc enabled, malloc may return
non-16-byte aligned blocks.
Hope this helps,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden