site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com In what circumstances is malloc_zone_batch_malloc supposed to return any memory? -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On May 21, 2008, at 2:00 PM, Ariel Burton wrote: <http://developer.apple.com/documentation/Performance/Conceptual/ManagingMemo...
"f your code allocates multiple, identically-sized memory blocks, you can use the malloc_zone_batch_malloc function to allocate those blocks all at once. This function offers better performance than the equivalent series of calls to malloc to allocate the same memory. Performance is best when the individual block size is relatively small— less than 4K in size. The function does its best to allocate all of the requested memory but may return less than was requested. When using this function, check the return values carefully to see how many blocks were actually allocated." This email sent to site_archiver@lists.apple.com