Searched refs:live_mem_blocks (Results 1 – 1 of 1) sorted by relevance
80 static size_t find_value_alloc_offset(struct memory_block* live_mem_blocks, in find_value_alloc_offset() argument88 return live_mem_blocks[0].end; in find_value_alloc_offset()92 qsort(live_mem_blocks, num_mem_blocks, sizeof(struct memory_block), cmp_memory_block); in find_value_alloc_offset()99 live_mem_blocks[num_coalesced_mem_blocks - 1].end; in find_value_alloc_offset()100 if (live_mem_blocks[i].start > current_coalesced_end) { in find_value_alloc_offset()102 live_mem_blocks[num_coalesced_mem_blocks] = live_mem_blocks[i]; in find_value_alloc_offset()106 if (live_mem_blocks[i].end > current_coalesced_end) { in find_value_alloc_offset()107 live_mem_blocks[num_coalesced_mem_blocks - 1].end = live_mem_blocks[i].end; in find_value_alloc_offset()115 assert(live_mem_blocks[i + 1].start > live_mem_blocks[i].end); in find_value_alloc_offset()116 const size_t gap = live_mem_blocks[i + 1].start - live_mem_blocks[i].end; in find_value_alloc_offset()[all …]