Home
last modified time | relevance | path

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

/support/
A Dsupport_shared_allocate.c29 size_t total_size; member
36 size_t total_size = size + offsetof (struct header, data); in support_shared_allocate() local
37 if (total_size < size) in support_shared_allocate()
45 struct header *result = xmmap (NULL, total_size, PROT_READ | PROT_WRITE, in support_shared_allocate()
47 result->total_size = total_size; in support_shared_allocate()
56 xmunmap (header, header->total_size); in support_shared_free()
A Dblob_repeat.c93 void *buffer = malloc (total_size); in allocate_malloc()
100 .size = total_size, in allocate_malloc()
148 if (stride_size > total_size) in allocate_big()
154 void *target = mmap (NULL, total_size, PROT_NONE, in allocate_big()
191 xmunmap (target, total_size); in allocate_big()
215 size_t remaining_size = total_size; in allocate_big()
235 xmunmap (target, total_size); in allocate_big()
253 .size = total_size, in allocate_big()
262 size_t total_size; in repeat_allocate() local
263 if (__builtin_mul_overflow (element_size, count, &total_size)) in repeat_allocate()
[all …]
A Dtst-support_blob_repeat.c88 enum { total_size = 9 * 10 * 1000 * 1000 }; in do_test() enumerator
89 p[total_size - 1] = '\0'; in do_test()
94 TEST_VERIFY (strlen (repeat.start) < total_size - 1); in do_test()
96 TEST_COMPARE (strlen (repeat.start), total_size - 1); in do_test()

Completed in 8 milliseconds