Home
last modified time | relevance | path

Searched refs:brk_max_addr (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.2/user/libs/libc/src/
Dmalloc.c38 static uint64_t brk_max_addr = 0; // 堆区域的内存最大地址 variable
137 brk_max_addr = brk(-2); in malloc_enlarge()
140 int64_t free_space = brk_max_addr - brk_managed_addr; in malloc_enlarge()
145 brk_max_addr = brk((-2)); in malloc_enlarge()
159 new_ck->length = brk_max_addr - brk_managed_addr; in malloc_enlarge()
163 brk_managed_addr = brk_max_addr; in malloc_enlarge()
356 …e_list_end + malloc_free_list_end->length == brk_max_addr && (uint64_t)malloc_free_list_end <= brk… in release_brk()
358 … int64_t delta = ((brk_max_addr - (uint64_t)malloc_free_list_end) & PAGE_2M_MASK) - PAGE_2M_SIZE; in release_brk()
366 brk_max_addr = brk(-2); in release_brk()
367 brk_managed_addr = brk_max_addr; in release_brk()
[all …]