Lines Matching refs:heap
51 rt_slab_t heap; in slab_alloc_test() local
65 heap = rt_slab_init("slab_tc", buf, TEST_SLAB_SIZE); in slab_alloc_test()
79 ctx = rt_slab_alloc(heap, size); in slab_alloc_test()
99 rt_slab_free(heap, ctx); in slab_alloc_test()
133 rt_slab_free(heap, ctx); in slab_alloc_test()
150 rt_slab_free(heap, ctx); in slab_alloc_test()
155 rt_slab_detach(heap); in slab_alloc_test()
183 rt_slab_t heap; in slab_realloc_test() local
200 heap = rt_slab_init("slab_tc", buf, TEST_SLAB_SIZE); in slab_realloc_test()
203 head.ctx_tab = rt_slab_alloc(heap, size); in slab_realloc_test()
217 ctx = rt_slab_realloc(heap, head.ctx_tab[idx], size); in slab_realloc_test()
243 rt_slab_realloc(heap, ctx, 0); in slab_realloc_test()
299 rt_slab_realloc(heap, ctx, 0); in slab_realloc_test()
303 rt_slab_detach(heap); in slab_realloc_test()