• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Leaks not showing my leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Leaks not showing my leak (From: Tom Bernard <email@hidden>)

  • Prev by Date: Re: Leaks not showing my leak
  • Next by Date: Re: Leaks not showing my leak
  • Previous by thread: Re: Leaks not showing my leak
  • Next by thread: Re: Leaks not showing my leak
  • Index(es):
    • Date
    • Thread