Lines Matching refs:uint64_t
32 uint64_t length; // 整个块所占用的内存区域的大小
37 static uint64_t brk_base_addr = 0; // 堆区域的内存基地址
38 static uint64_t brk_max_addr = 0; // 堆区域的内存最大地址
39 static uint64_t brk_managed_addr = 0; // 堆区域已经被管理的地址
46 static uint64_t count_last_free_size = 0; // 统计距离上一次回收内存,已经free了多少内存
67 static malloc_mem_chunk_t *malloc_query_free_chunk_bf(uint64_t size) in malloc_query_free_chunk_bf()
107 static malloc_mem_chunk_t *malloc_query_free_chunk_ff(uint64_t size) in malloc_query_free_chunk_ff()
182 if (((uint64_t)(ptr->prev) + ptr->prev->length == (uint64_t)ptr)) in malloc_merge_free_chunk()
219 if ((uint64_t)ptr < (uint64_t)ck) in malloc_insert_free_list()
229 else if ((uint64_t)(ptr->next) > (uint64_t)ck) in malloc_insert_free_list()
275 if (size + sizeof(uint64_t) <= sizeof(malloc_mem_chunk_t)) in malloc()
278 size += sizeof(uint64_t); in malloc()
331 malloc_mem_chunk_t *new_ck = (malloc_mem_chunk_t *)(((uint64_t)ck) + size); in malloc()
340 return (void *)((uint64_t)ck + sizeof(uint64_t)); in malloc()
356 …if ((uint64_t)malloc_free_list_end + malloc_free_list_end->length == brk_max_addr && (uint64_t)mal… 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()
369 malloc_free_list_end->length = brk_max_addr - (uint64_t)malloc_free_list_end; in release_brk()
380 malloc_mem_chunk_t *ck = (malloc_mem_chunk_t *)((uint64_t)ptr - sizeof(uint64_t)); in free()