Re: new malloc calls
Re: new malloc calls
- Subject: Re: new malloc calls
- From: Brian Bergstrand <email@hidden>
- Date: Fri, 9 Oct 2009 17:38:43 +0300
These are probably the malloc routines to support libcache/NSCache.
http://developer.apple.com/mac/library/releasenotes/MacOSX/WhatsNewInOSX/Articles/MacOSX10_6.html#//apple_ref/doc/uid/TP40008898-SW1
On Oct 9, 2009, at 5:31 PM, email@hidden wrote:
Hello,
I'm looking at <malloc/malloc.h>, and I see a number
of what appear to be new calls:
extern malloc_zone_t *malloc_default_purgeable_zone(void);
/* Returns a pointer to the default purgeable_zone. */
extern void malloc_make_purgeable(void *ptr);
/* Make an allocation from the purgeable zone purgeable if
possible. */
extern int malloc_make_nonpurgeable(void *ptr);
/* Makes an allocation from the purgeable zone nonpurgeable.
* Returns zero if the contents were not purged since the last
* call to malloc_make_purgeable, else returns non-zero. */
What are purgeable zones?
Where are these calls documented?
Many thanks,
Ariel Burton
Brian Bergstrand
<http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden