Searched refs:heap_size (Results 1 – 1 of 1) sorted by relevance
196 size_t heap_size; in malloc_prepare() local199 heap_size = k_mem_free_get(); in malloc_prepare()201 if (heap_size != 0) { in malloc_prepare()202 heap_base = k_mem_map(heap_size, K_MEM_PERM_RW); in malloc_prepare()204 "failed to allocate heap of size %zu", heap_size); in malloc_prepare()212 heap_size = 1; in malloc_prepare()213 while (heap_size * 2 <= HEAP_SIZE) { in malloc_prepare()214 heap_size *= 2; in malloc_prepare()218 while (heap_size >= HEAP_ALIGN) { in malloc_prepare()219 heap_base = UINT_TO_POINTER(ROUND_UP(HEAP_BASE, heap_size)); in malloc_prepare()[all …]