X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/a991bd8d3e7fe02dbca0644054bab73c5b75324a..refs/heads/master:/bsd/sys/malloc.h diff --git a/bsd/sys/malloc.h b/bsd/sys/malloc.h index 4bf21625f..62c2a4085 100644 --- a/bsd/sys/malloc.h +++ b/bsd/sys/malloc.h @@ -144,6 +144,12 @@ ZONE_VIEW_DECLARE(ZV_NAMEI); #define M_LAST 129 /* Must be last type + 1 */ +/* + * If you need accounting consider using + * KALLOC_HEAP_DEFINE to define a view. + */ +#define KM_SHM KHEAP_DEFAULT + #define MALLOC(space, cast, size, type, flags) \ ({ VM_ALLOC_SITE_STATIC(0, 0); \ (space) = (cast)__MALLOC(size, type, flags, &site); })