Home | History | Annotate | Download | only in integration

Lines Matching refs:ptr

13 static void callback(uintptr_t ptr, size_t size, void* arg) {
16 if (ptr <= alloc_find && alloc_find < ptr + size) {
17 assert(alloc_find + alloc_find_size <= ptr + size);
29 void *ptr;
30 ptr = malloc(sz);
31 assert_ptr_not_null(ptr, "malloc() failed for size %zu", sz);
35 alloc_find = (uintptr_t)ptr;
41 assert(je_iterate((uintptr_t)ptr, sz, callback, NULL) == 0);
45 free(ptr);
58 void *ptr;
59 ptr = malloc(sz);
60 free(ptr);
61 assert_ptr_not_null(ptr, "malloc() failed for size %zu", sz);
65 alloc_find = (uintptr_t)ptr;
71 je_iterate((uintptr_t)ptr, sz, callback, NULL);
85 void *ptr;
90 ptr = malloc(sz);
91 assert_ptr_not_null(ptr, "malloc() failed for size %zu", sz);
97 alloc_find = (uintptr_t)ptr;
103 assert(je_iterate((uintptr_t)ptr, sz, callback, NULL) == 0);
107 free(ptr);