Home
last modified time | relevance | path

Searched refs:allocation_size (Results 1 – 3 of 3) sorted by relevance

/malloc/
A Dtst-malloc-thread-fail.c46 static size_t allocation_size; variable
95 q = realloc (p, allocation_size); in allocate_1()
121 alignment, allocation_size); in allocate_1()
129 void *p = valloc (allocation_size); in allocate_1()
134 void *p = pvalloc (allocation_size); in allocate_1()
142 for (size_t i = 0; i < allocation_size; ++i) in allocate_1()
395 allocation_size = 144; in do_test()
397 allocation_size = page_size; in do_test()
401 allocation_size = 512; in do_test()
404 allocation_size = page_size; in do_test()
[all …]
A Dtst-interpose-aux.c99 size_t allocation_size; member
153 size_t allocation_size = size + sizeof (struct allocation_header); in malloc_internal() local
154 if (allocation_size < size) in malloc_internal()
161 void *result = mmap (NULL, allocation_size, PROT_READ | PROT_WRITE, in malloc_internal()
169 .allocation_size = allocation_size in malloc_internal()
181 int result = mprotect (header, header->allocation_size, PROT_NONE); in free_internal()
183 fail ("%s: mprotect (%p, %zu): %m", op, header, header->allocation_size); in free_internal()
193 size_t old_size = header->allocation_size - sizeof (struct allocation_header); in realloc_internal()
A Ddynarray_finalize.c45 size_t allocation_size = used * element_size; in __libc_dynarray_finalize() local
46 void *heap_array = malloc (allocation_size); in __libc_dynarray_finalize()
51 memcpy (heap_array, list->array, allocation_size); in __libc_dynarray_finalize()

Completed in 9 milliseconds