Lines Matching refs:NULL

43 static malloc_mem_chunk_t *malloc_free_list = NULL;
44 static malloc_mem_chunk_t *malloc_free_list_end = NULL; // 空闲链表的末尾结点
72 if (malloc_free_list == NULL) in malloc_query_free_chunk_bf()
74 return NULL; in malloc_query_free_chunk_bf()
77 malloc_mem_chunk_t *best = NULL; in malloc_query_free_chunk_bf()
79 while (ptr != NULL) in malloc_query_free_chunk_bf()
90 if (best == NULL) in malloc_query_free_chunk_bf()
109 if (malloc_free_list == NULL) in malloc_query_free_chunk_ff()
110 return NULL; in malloc_query_free_chunk_ff()
122 return NULL; in malloc_query_free_chunk_ff()
162 new_ck->prev = NULL; in malloc_enlarge()
163 new_ck->next = NULL; in malloc_enlarge()
177 if (malloc_free_list == NULL) in malloc_merge_free_chunk()
180 while (ptr != NULL) in malloc_merge_free_chunk()
189 if (ptr->next == NULL) in malloc_merge_free_chunk()
207 if (malloc_free_list == NULL) // 空闲链表为空 in malloc_insert_free_list()
211 ck->prev = ck->next = NULL; in malloc_insert_free_list()
218 while (ptr != NULL) in malloc_insert_free_list()
222 if (ptr->next == NULL) // 当前是最后一个项 in malloc_insert_free_list()
225 ck->next = NULL; in malloc_insert_free_list()
242 if (ptr->prev == NULL) // 是第一个项 in malloc_insert_free_list()
245 ck->prev = NULL; in malloc_insert_free_list()
284 if (ck == NULL) // 没有空闲块 in malloc()
311 if (ck == NULL) in malloc()
316 if (ck->prev == NULL) // 当前是链表的第一个块 in malloc()
323 if (ck->next != NULL) // 当前不是最后一个块 in malloc()
334 new_ck->prev = new_ck->next = NULL; in malloc()
352 if (malloc_free_list_end == NULL) in release_brk()