Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 28) sorted by relevance

12

/malloc/
A Dtst-calloc.c35 int i; in fixed_test() local
37 for (i = 0; i < N; ++i) in fixed_test()
51 size, i, j); in fixed_test()
52 ptrs[i][j] = '\xff'; in fixed_test()
56 while (i-- > 0) in fixed_test()
57 free (ptrs[i]); in fixed_test()
65 int i; in random_test() local
67 for (i = 0; i < N; ++i) in random_test()
84 size, i, j); in random_test()
89 while (i-- > 0) in random_test()
[all …]
A Dtst-mallocstate.c159 for (size_t i = 0; i < length; ++i) in randomize_buffer() local
167 for (int i = 0; i < length; ++i) in dump_hex() local
235 for (int i = 0; i < allocation_task_count - 1; ++i) in shuffle_allocation_tasks() local
253 for (int i = 0; i < allocation_task_count; ++i) in initial_allocations() local
268 for (int i = 0; i < allocation_task_count; ++i) in initial_allocations() local
276 for (int i = 0; i < allocation_task_count; ++i) in initial_allocations() local
348 for (int i = 0; i < heap_activity_allocations_count; ++i) in heap_activity_deallocate() local
358 for (int i = 0; i < allocation_task_count; ++i) in full_heap_check() local
363 for (int i = 0; i < heap_activity_allocations_count; ++i) in full_heap_check() local
391 for (int i = 0; i < allocation_task_count; ++i) in do_test() local
[all …]
A Dtst-tcfree2.c32 int i; in do_test() local
36 for (i = 0; i < COUNT; i++) in do_test()
37 ptrs[i] = malloc (20); in do_test()
38 for (i = 0; i < COUNT; i++) in do_test()
39 free (ptrs[i]); in do_test()
A Dtst-malloc-thread-exit.c79 for (int i = 0; i < inner_thread_count; ++i) in outer_thread() local
82 if ((i % 2) == 0) in outer_thread()
86 threads[i] = xpthread_create (NULL, func, &barrier); in outer_thread()
89 for (int i = 0; i < inner_thread_count; ++i) in outer_thread() local
90 xpthread_join (threads[i]); in outer_thread()
118 for (long i = 0; i < outer_thread_count; ++i) in do_test() local
119 threads[i] = xpthread_create (NULL, outer_thread, NULL); in do_test()
130 for (long i = 0; i < outer_thread_count; ++i) in do_test() local
131 xpthread_join (threads[i]); in do_test()
A Dtst-trim1.c13 for (int i = 0; i < N; ++i) in do_test() local
17 if ((arr[i] = malloc (size)) == NULL) in do_test()
24 memset (arr[i], size, size); in do_test()
34 for (int i = 0; i < N; ++i) in do_test() local
35 if (i % 13 != 0) in do_test()
36 free (arr[i]); in do_test()
A Dmallocbug.c22 size_t i; in main() local
54 for (i = 0; i < over_top_size; ++i) in main()
55 if (over_top[i] != 0) in main()
61 for (i = 0; i < over_top_dup_size; ++i) in main()
62 if (over_top_dup[i] != 1) in main()
A Dtst-free-errno.c53 size_t i; in do_test() local
54 for (i = 0; i < N; i++) in do_test()
55 ptrs[i] = xmalloc (5318153); in do_test()
56 for (i = 0; i < N; i++) in do_test()
59 free (ptrs[i]); in do_test()
111 for (int i = 0; i < 65536; i++) in do_test() local
A Dtst-realloc.c38 int save, i, ok; in do_test() local
83 for (i = 0; i < 20; i++) in do_test()
85 if (c[i] != 0) in do_test()
108 for (i = 0; i < 16; i++) in do_test()
110 if (c[i] != 0xff) in do_test()
132 for (i = 0; i < 16; i++) in do_test()
134 if (c[i] != 0xff) in do_test()
A Dtst-dynarray.c101 for (unsigned int i = 0; i < count; ++i) in test_int() local
156 for (unsigned int i = 0; i < final_count; ++i) in test_int() local
228 for (unsigned int i = 0; i < count; ++i) in test_str() local
355 for (int i = 2; i < count; ++i) in test_str() local
374 for (int i = 0; i < count; ++i) in test_long_init() local
381 for (int i = 0; i < count; ++i) in test_long_init() local
401 for (int i = 1; i < count; ++i) in test_long_init() local
430 for (int i = 0; i < count; ++i) in test_long_init() local
440 for (int i = 1; i < count; ++i) in test_long_init() local
446 for (int i = 1; i < count; ++i) in test_long_init() local
[all …]
A Dtst-reallocarray.c47 size_t i; in do_test() local
92 for (i = 0; i < 10*2; ++i) in do_test()
94 if (c[i] != 0xAF) in do_test()
108 for (i = 0; i < 5*3; ++i) in do_test()
110 if (c[i] != 0xAF) in do_test()
123 for (i = 0; i < 5*3; ++i) in do_test()
125 if (c[i] != 0xAF) in do_test()
A Dtst-mallocfork2.c138 for (size_t i = 0; i < array_length (sigusr1_sender_pids); ++i) in kill_children() local
139 if (sigusr1_sender_pids[i] > 0) in kill_children()
140 kill (sigusr1_sender_pids[i], SIGKILL); in kill_children()
188 for (size_t i = 0; i < array_length (sigusr1_sender_pids); ++i) in do_test() local
190 sigusr1_sender_pids[i] = xfork (); in do_test()
191 if (sigusr1_sender_pids[i] == 0) in do_test()
200 for (int i = 0; i < iterations; ++i) in do_test() local
238 for (size_t i = 0; i < array_length (sigusr1_sender_pids); ++i) in do_test() local
239 kill (sigusr1_sender_pids[i], SIGKILL); in do_test()
A Dtst-malloc_info.c84 for (size_t i = 0; i < array_length (threads); ++i) in do_test() local
85 threads[i] = xpthread_create (NULL, allocation_thread_function, NULL); in do_test()
92 for (size_t i = 0; i < array_length (threads); ++i) in do_test() local
93 xpthread_join (threads[i]); in do_test()
A Dtst-malloc-fork-deadlock.c119 for (size_t i = 0; i < count; ++i) in create_threads() local
120 threads[i] = xpthread_create (NULL, func, NULL); in create_threads()
126 for (size_t i = 0; i < count; ++i) in join_threads() local
127 xpthread_join (threads[i]); in join_threads()
148 for (int i = 0; i < 50000; ++i) in create_file_with_large_line() local
A Dtst-mallinfo2.c54 int i; in do_test() local
68 for (i = 1; i < 20; ++i) in do_test()
70 ptr = malloc (160 * i); in do_test()
71 total += 160 * i; in do_test()
A Dtst-safe-linking.c35 int i, rand_mask; in check() local
39 for (i = 0; i < 16; ++i) in check()
111 int i; in test_fastbin() local
118 for (i = 0; i < TCACHE_FILL_COUNT; ++i) in test_fastbin()
150 int i; in test_fastbin_consolidate() local
157 for (i = 0; i < TCACHE_FILL_COUNT; ++i) in test_fastbin_consolidate()
A Dtst-scratch_buffer.c115 for (unsigned i = 7; i < old_length; ++i) in do_test() local
116 if (((char *)buf.data)[i] != '@') in do_test()
119 i); in do_test()
160 for (int i = 0; i < array_length (sizes); i++) in do_test() local
163 size_t l = sizes[i] > buf.length ? sizes[i] : buf.length; in do_test()
A Dtst-malloc-too-large.c262 for (size_t i = 0; i <= FOURTEEN_ON_BITS; i++) in do_test() local
264 test_large_allocations (SIZE_MAX - i); in do_test()
265 test_large_aligned_allocations (SIZE_MAX - i); in do_test()
272 for (size_t i = 1; i <= FOURTEEN_ON_BITS; i++) in do_test() local
274 test_large_allocations (PTRDIFF_MAX + i); in do_test()
275 test_large_aligned_allocations (PTRDIFF_MAX + i); in do_test()
A Dtst-malloc-thread-fail.c142 for (size_t i = 0; i < allocation_size; ++i) in allocate_1() local
143 if (p[i] != 0) in allocate_1()
145 printf ("error: non-zero byte at offset %zu\n", i); in allocate_1()
247 for (unsigned i = 0; i < thread_count; ++i) in run_one() local
249 int ret = pthread_create (threads + i, &small_stack, allocate_thread, NULL); in run_one()
261 for (unsigned i = 0; i < thread_count; ++i) in run_one() local
263 int ret = pthread_join (threads[i], NULL); in run_one()
A Dtst-obstack.c36 int i; in do_test() local
47 for (i = 15; i > 0; --i) in do_test()
A Dtst-mallocfork3.c150 for (size_t i = 0; i < array_length (sigusr1_sender); ++i) in do_test() local
151 sigusr1_sender[i] = xpthread_create (NULL, signal_sender, &sigusr1_args); in do_test()
158 for (int i = 0; i < iterations; ++i) in do_test() local
A Dobstack.c60 uintmax_t i; member
251 long i; in _obstack_newchunk() local
277 for (i = obj_size / sizeof (COPYING_UNIT) - 1; in _obstack_newchunk()
278 i >= 0; i--) in _obstack_newchunk()
279 ((COPYING_UNIT *) object_base)[i] in _obstack_newchunk()
280 = ((COPYING_UNIT *) h->object_base)[i]; in _obstack_newchunk()
289 for (i = already; i < obj_size; i++) in _obstack_newchunk()
290 object_base[i] = h->object_base[i]; in _obstack_newchunk()
A Dtst-interpose-skeleton.c36 for (size_t i = 0; i < length - 2; ++i) in line_string() local
37 buffer[i] = 'A' + ((number + i) % 26); in line_string()
A Dmalloc.c1966 for (i = 1; i < NBINS; ++i) in malloc_init_state()
2300 for (i = 0; i < NFASTBINS; ++i) in do_check_malloc_state()
2334 for (i = 1; i < NBINS; ++i) in do_check_malloc_state()
3218 for (i = 0; i < TCACHE_MAX_BINS; ++i) in tcache_thread_shutdown()
5048 for (int i = 1; i < NBINS; ++i) in mtrim() local
5170 for (i = 0; i < NFASTBINS; ++i) in int_mallinfo()
5187 for (i = 1; i < NBINS; ++i) in int_mallinfo()
5755 for (size_t i = 0; i < NFASTBINS; ++i) in weak_alias() local
5788 for (size_t i = 1; i < NBINS; ++i) in weak_alias() local
5841 for (size_t i = 0; i < nsizes; ++i) in weak_alias() local
[all …]
A Dtst-dynarray-fail.c130 for (unsigned int i = 0; i < 10000; ++i) in test_int_fail() local
134 dynarray_int_add (&dyn, i); in test_int_fail()
141 *place = i; in test_int_fail()
262 for (unsigned int i = 0; i < 1000; ++i) in test_str_fail() local
A Dtst-interpose-aux.c58 for (int i = 0; i < count; ++i) in fail() local
59 iov[i].iov_len = strlen (iov[i].iov_base); in fail()

Completed in 51 milliseconds

12