Lines Matching refs:zone
16 static malloc_zone_t zone; variable
22 static size_t zone_size(malloc_zone_t *zone, void *ptr);
23 static void *zone_malloc(malloc_zone_t *zone, size_t size);
24 static void *zone_calloc(malloc_zone_t *zone, size_t num, size_t size);
25 static void *zone_valloc(malloc_zone_t *zone, size_t size);
26 static void zone_free(malloc_zone_t *zone, void *ptr);
27 static void *zone_realloc(malloc_zone_t *zone, void *ptr, size_t size);
29 static void *zone_memalign(malloc_zone_t *zone, size_t alignment,
33 static void zone_free_definite_size(malloc_zone_t *zone, void *ptr,
36 static void *zone_destroy(malloc_zone_t *zone);
37 static size_t zone_good_size(malloc_zone_t *zone, size_t size);
38 static void zone_force_lock(malloc_zone_t *zone);
39 static void zone_force_unlock(malloc_zone_t *zone);
47 zone_size(malloc_zone_t *zone, void *ptr) in zone_size() argument
63 zone_malloc(malloc_zone_t *zone, size_t size) in zone_malloc() argument
70 zone_calloc(malloc_zone_t *zone, size_t num, size_t size) in zone_calloc() argument
77 zone_valloc(malloc_zone_t *zone, size_t size) in zone_valloc() argument
87 zone_free(malloc_zone_t *zone, void *ptr) in zone_free() argument
99 zone_realloc(malloc_zone_t *zone, void *ptr, size_t size) in zone_realloc() argument
110 zone_memalign(malloc_zone_t *zone, size_t alignment, size_t size) in zone_memalign() argument
122 zone_free_definite_size(malloc_zone_t *zone, void *ptr, size_t size) in zone_free_definite_size() argument
138 zone_destroy(malloc_zone_t *zone) in zone_destroy() argument
147 zone_good_size(malloc_zone_t *zone, size_t size) in zone_good_size() argument
156 zone_force_lock(malloc_zone_t *zone) in zone_force_lock() argument
164 zone_force_unlock(malloc_zone_t *zone) in zone_force_unlock() argument
187 zone.size = (void *)zone_size; in JEMALLOC_ATTR()
188 zone.malloc = (void *)zone_malloc; in JEMALLOC_ATTR()
189 zone.calloc = (void *)zone_calloc; in JEMALLOC_ATTR()
190 zone.valloc = (void *)zone_valloc; in JEMALLOC_ATTR()
191 zone.free = (void *)zone_free; in JEMALLOC_ATTR()
192 zone.realloc = (void *)zone_realloc; in JEMALLOC_ATTR()
193 zone.destroy = (void *)zone_destroy; in JEMALLOC_ATTR()
194 zone.zone_name = "jemalloc_zone"; in JEMALLOC_ATTR()
195 zone.batch_malloc = NULL; in JEMALLOC_ATTR()
196 zone.batch_free = NULL; in JEMALLOC_ATTR()
197 zone.introspect = &zone_introspect; in JEMALLOC_ATTR()
198 zone.version = JEMALLOC_ZONE_VERSION; in JEMALLOC_ATTR()
200 zone.memalign = zone_memalign; in JEMALLOC_ATTR()
203 zone.free_definite_size = zone_free_definite_size; in JEMALLOC_ATTR()
206 zone.pressure_relief = NULL; in JEMALLOC_ATTR()
246 malloc_zone_register(&zone); in JEMALLOC_ATTR()
275 } while (malloc_default_zone() != &zone); in JEMALLOC_ATTR()