Lines Matching full:heap
14 /* Heap metadata sizes */
18 * behavior of the heap in order to exercise coverage of the
19 * underlying code: that chunk headers are 8 bytes, that heap chunks
39 /* Make sure ALL the split memory goes back into the heap and in check_heap_align()
52 zassert_true(sys_heap_validate(h), "heap invalid"); in check_heap_align()
54 zassert_true(p != NULL, "heap not empty"); in check_heap_align()
56 zassert_true(q == NULL, "heap not full"); in check_heap_align()
62 struct sys_heap heap = {}; in ZTEST() local
65 sys_heap_init(&heap, heapmem, HEAP_SZ); in ZTEST()
67 p = sys_heap_alloc(&heap, 1); in ZTEST()
69 sys_heap_free(&heap, p); in ZTEST()
71 /* Heap starts where that first chunk was, and ends one 8-byte in ZTEST()
80 check_heap_align(&heap, prefix, align, size); in ZTEST()
86 p = sys_heap_aligned_alloc(&heap, 8, 12); in ZTEST()
88 zassert_true(sys_heap_validate(&heap), "heap invalid"); in ZTEST()
89 sys_heap_free(&heap, p); in ZTEST()
92 p = sys_heap_aligned_alloc(&heap, 16, 16); in ZTEST()
93 q = sys_heap_aligned_alloc(&heap, 16, 17); in ZTEST()
96 zassert_true(sys_heap_validate(&heap), "heap invalid"); in ZTEST()
97 sys_heap_free(&heap, p); in ZTEST()
98 sys_heap_free(&heap, q); in ZTEST()