/malloc/ |
A D | tst-mallocalign1.c | 31 return p; in test() 37 void *p; in do_test() local 40 p = test (2); in do_test() 42 free (p); in do_test() 44 p = test (8); in do_test() 46 free (p); in do_test() 50 free (p); in do_test() 54 free (p); in do_test() 58 free (p); in do_test() 62 free (p); in do_test() [all …]
|
A D | tst-realloc.c | 36 void *p; in do_test() local 53 if (p != NULL) in do_test() 69 free (p); in do_test() 76 p = realloc (p, 200); in do_test() 80 c = p; in do_test() 92 free (p); in do_test() 101 p = realloc (p, 16); in do_test() 105 c = p; in do_test() 129 c = p; in do_test() 142 p = realloc (p, 0); in do_test() [all …]
|
A D | tst-posix_memalign.c | 38 void *p; in do_test() local 43 p = NULL; in do_test() 64 free (p); in do_test() 66 p = NULL; in do_test() 74 free (p); in do_test() 76 p = NULL; in do_test() 84 free (p); in do_test() 86 p = NULL; in do_test() 95 free (p); in do_test() 107 p = NULL; in do_test() [all …]
|
A D | tst-malloc-check.c | 35 void *p, *q; in do_test() local 48 if (p != NULL) in do_test() 54 if (p == NULL) in do_test() 57 p = realloc (p, 0); in do_test() 58 if (p != NULL) in do_test() 62 if (p == NULL) in do_test() 65 p = realloc (p, 0); in do_test() 66 if (p != NULL) in do_test() 74 if (p == NULL) in do_test() 89 free (p); in do_test() [all …]
|
A D | tst-memalign.c | 38 void *p; in do_test() local 60 if (p != NULL) in do_test() 66 free (p); in do_test() 75 if (p != NULL) in do_test() 81 free (p); in do_test() 90 if (p != NULL) in do_test() 96 free (p); in do_test() 102 if (p == NULL) in do_test() 105 free (p); in do_test() 110 if (p == NULL) in do_test() [all …]
|
A D | tst-malloc.c | 35 void *p, *q; in do_test() local 50 if (p != NULL) in do_test() 57 if (p == NULL) in do_test() 61 p = realloc (p, 0); in do_test() 62 if (p != NULL) in do_test() 65 p = malloc (0); in do_test() 66 if (p == NULL) in do_test() 69 p = realloc (p, 0); in do_test() 70 if (p != NULL) in do_test() 74 if (p == NULL) in do_test() [all …]
|
A D | tst-pvalloc.c | 38 void *p; in do_test() local 53 p = pvalloc (-1); in do_test() 60 if (p != NULL) in do_test() 66 free (p); in do_test() 75 if (p != NULL) in do_test() 81 free (p); in do_test() 85 p = pvalloc (0); in do_test() 87 if (p == NULL) in do_test() 90 free (p); in do_test() 95 if (p == NULL) in do_test() [all …]
|
A D | tst-valloc.c | 38 void *p; in do_test() local 53 p = valloc (-1); in do_test() 60 if (p != NULL) in do_test() 66 free (p); in do_test() 75 if (p != NULL) in do_test() 81 free (p); in do_test() 85 p = valloc (0); in do_test() 87 if (p == NULL) in do_test() 90 free (p); in do_test() 95 if (p == NULL) in do_test() [all …]
|
A D | malloc-check.c | 39 magic = (((uintptr_t) p >> 3) ^ ((uintptr_t) p >> 11)) & 0xFF; in magicbyte() 78 mchunkptr p; in mem2mem_check() local 110 mchunkptr p; in mem2chunk_check() local 118 sz = chunksize (p); in mem2chunk_check() 130 next_chunk (prev_chunk (p)) != p))) in mem2chunk_check() 153 !chunk_is_mmapped (p) || prev_inuse (p) || in mem2chunk_check() 154 ((((unsigned long) p - prev_size (p)) & page_mask) != 0) || in mem2chunk_check() 171 return p; in mem2chunk_check() 213 mchunkptr p; in free_check() local 227 if (!p) in free_check() [all …]
|
A D | malloc.c | 1414 #define next_chunk(p) ((mchunkptr) (((char *) (p)) + chunksize (p))) argument 1423 #define prev_chunk(p) ((mchunkptr) (((char *) (p)) - prev_size (p))) argument 1647 if (p->fd_nextsize == p) in unlink_chunk() 2148 assert (p->fd->bk == p); in do_check_free_chunk() 2149 assert (p->bk->fd == p); in do_check_free_chunk() 2329 p = REVEAL_PTR (p->fd); in do_check_malloc_state() 2349 for (p = last (b); p != b; p = p->bk) in do_check_malloc_state() 5053 for (mchunkptr p = last (bin); p != bin; p = p->bk) in mtrim() local 5174 p = REVEAL_PTR (p->fd)) in int_mallinfo() 5190 for (p = last (b); p != b; p = p->bk) in int_mallinfo() [all …]
|
A D | tst-compathooks-off.c | 111 void *p; in do_test() local 112 p = malloc (0); in do_test() 113 TEST_VERIFY_EXIT (p != NULL); in do_test() 116 p = realloc (p, 0); in do_test() 117 TEST_VERIFY_EXIT (p == NULL); in do_test() 120 p = calloc (512, 1); in do_test() 121 TEST_VERIFY_EXIT (p != NULL); in do_test() 124 free (p); in do_test() 127 p = memalign (0x100, 0x100); in do_test() 128 TEST_VERIFY_EXIT (p != NULL); in do_test() [all …]
|
A D | tst-pvalloc-fortify.c | 34 void *p = pvalloc (5); in do_test() local 35 TEST_VERIFY_EXIT (p != NULL); in do_test() 41 strcpy (p, "abcdefg"); in do_test() 43 asm ("" : : "g" (p) : "memory"); /* Optimization barrier. */ in do_test() 44 TEST_VERIFY (malloc_usable_size (p) >= xsysconf (_SC_PAGESIZE)); in do_test()
|
A D | tst-malloc-usable.c | 32 void *p = malloc (7); in do_test() local 34 TEST_VERIFY_EXIT (p != NULL); in do_test() 35 usable_size = malloc_usable_size (p); in do_test() 37 memset (p, 0, usable_size); in do_test() 38 free (p); in do_test()
|
A D | tst-trim1.c | 27 void *p = malloc (256); in do_test() local 28 if (p == NULL) in do_test() 30 memset (p, 1, 256); in do_test() 44 p = malloc (30000); in do_test() 45 if (p == NULL) in do_test() 48 memset (p, 2, 30000); in do_test()
|
A D | tst-malloc-thread-fail.c | 89 void *p = realloc (NULL, 16); in allocate_1() local 91 if (p == NULL) in allocate_1() 95 q = realloc (p, allocation_size); in allocate_1() 97 free (p); in allocate_1() 104 return (struct allocate_result) {p, alignment}; in allocate_1() 113 void *p; in allocate_1() local 117 p = NULL; in allocate_1() 129 void *p = valloc (allocation_size); in allocate_1() local 134 void *p = pvalloc (allocation_size); in allocate_1() local 141 if (p != NULL) in allocate_1() [all …]
|
A D | set-freeres.c | 52 void *const *p; in __libc_freeres() local 75 for (p = symbol_set_first_element (__libc_freeres_ptrs); in __libc_freeres() 76 !symbol_set_end_p (__libc_freeres_ptrs, p); ++p) in __libc_freeres() 77 free (*p); in __libc_freeres()
|
A D | arena.c | 442 mchunkptr p; in dump_heap() local 451 fprintf (stderr, "chunk %p size %10lx", p, (long) chunksize_nomask(p)); in dump_heap() 452 if (p == top (heap->ar_ptr)) in dump_heap() 463 p = next_chunk (p); in dump_heap() 660 p = prev_chunk (p); in heap_trim() 663 if (!prev_inuse (p)) in heap_trim() 677 p = prev_chunk (p); in heap_trim() 845 for (mstate p = free_list; p != NULL; p = p->next_free) in remove_from_free_list() local 848 if (p == arena) in remove_from_free_list() 851 *previous = p->next_free; in remove_from_free_list() [all …]
|
A D | tst-mtrace.c | 53 char **p; in do_test() local 67 p = (char **) tsearch (copy, &root, in do_test() 69 if (*p != copy) in do_test()
|
A D | tst-safe-linking.c | 120 void * volatile p = calloc (1, size); in test_fastbin() local 121 printf ("p=%p\n", p); in test_fastbin() 122 free (p); in test_fastbin() 159 void * volatile p = calloc (1, size); in test_fastbin_consolidate() local 160 free (p); in test_fastbin_consolidate()
|
A D | tst-malloc-stats-cancellation.c | 50 char block[BUFSIZ], *p; in buffer_threadproc() local 66 p = block; in buffer_threadproc() 69 nwritten = fwrite_unlocked (p, 1, nread, ofp); in buffer_threadproc() 78 p += nwritten; in buffer_threadproc()
|
A D | tst-alloc_buffer.c | 579 const char *p = alloc_buffer_copy_string (&buf, ""); in test_copy_string() local 580 TEST_VERIFY (p == backing); in test_copy_string() 581 TEST_VERIFY (strcmp (p, "") == 0); in test_copy_string() 589 const char *p = alloc_buffer_copy_string (&buf, "1"); in test_copy_string() local 590 TEST_VERIFY (p == backing); in test_copy_string() 591 TEST_VERIFY (strcmp (p, "1") == 0); in test_copy_string() 599 const char *p = alloc_buffer_copy_string (&buf, "12"); in test_copy_string() local 600 TEST_VERIFY (p == backing); in test_copy_string() 601 TEST_VERIFY (strcmp (p, "12") == 0); in test_copy_string() 610 TEST_VERIFY (p == backing); in test_copy_string() [all …]
|
A D | Versions | 35 # p* 55 # p*
|
A D | malloc-debug.c | 163 #define DUMPED_MAIN_ARENA_CHUNK(p) \ argument 164 ((p) >= dumped_main_arena_start && (p) < dumped_main_arena_end) 410 mchunkptr p = mem2chunk (mem); in strong_alias() local 411 if (DUMPED_MAIN_ARENA_CHUNK (p)) in strong_alias() 412 return chunksize (p) - SIZE_SZ; in strong_alias()
|
A D | obstack.c | 62 void *p; member
|