Home
last modified time | relevance | path

Searched refs:size_classes (Results 1 – 9 of 9) sorted by relevance

/third_party/musl/src/malloc/mallocng/
Ddonate.c18 if (b-a < (size_classes[sc]+1)*UNIT) continue; in donate()
30 m->mem->storage[size_classes[sc]*UNIT-4] = 0; in donate()
32 a += (size_classes[sc]+1)*UNIT; in donate()
Dmeta.h10 extern const uint16_t size_classes[];
148 assert(offset >= size_classes[meta->sizeclass]*index); in get_meta()
149 assert(offset < size_classes[meta->sizeclass]*(index+1)); in get_meta()
180 return UNIT*size_classes[g->sizeclass]; in get_stride()
235 if (n>size_classes[i+1]) i+=2; in size_to_class()
236 if (n>size_classes[i]) i++; in size_to_class()
Dmalloc.c12 const uint16_t size_classes[] = { variable
151 int size = size_classes[m->sizeclass]*UNIT; in try_avail()
176 size_t size = UNIT*size_classes[sc]; in alloc_group()
267 p = enframe(g, idx, UNIT*size_classes[j]-IB, ctx.mmap_counter); in alloc_group()
386 get_stride(g) < UNIT*size_classes[g->sizeclass]; in is_allzero()
Dglue.h17 #define size_classes __malloc_size_classes macro
Dfree.c45 if (sc >= 48 || get_stride(g) < UNIT*size_classes[sc]) in okay_to_free()
/third_party/musl/porting/linux/user/src/malloc/mallocng/
Ddonate.c18 if (b-a < (size_classes[sc]+1)*UNIT) continue; in donate()
30 m->mem->storage[size_classes[sc]*UNIT-4] = 0; in donate()
32 a += (size_classes[sc]+1)*UNIT; in donate()
Dmeta.h10 extern const uint16_t size_classes[];
163 assert(offset >= size_classes[meta->sizeclass]*index); in get_meta()
164 assert(offset < size_classes[meta->sizeclass]*(index+1)); in get_meta()
195 return UNIT*size_classes[g->sizeclass]; in get_stride()
250 if (n>size_classes[i+1]) i+=2; in size_to_class()
251 if (n>size_classes[i]) i++; in size_to_class()
Dmalloc.c69 const uint16_t size_classes[] = { variable
209 int size = size_classes[m->sizeclass]*UNIT; in try_avail()
240 size_t size = UNIT*size_classes[sc]; in alloc_group()
332 p = enframe(g, idx, UNIT*size_classes[j]-IB, ctx.mmap_counter); in alloc_group()
463 get_stride(g) < UNIT*size_classes[g->sizeclass]; in is_allzero()
/third_party/musl/src/malloc/oldmallocng/
Dmallinfo.c37 int outer_sz = size_classes[outer_sc]*UNIT;
40 int sz = size_classes[sc]*UNIT;