Home
last modified time | relevance | path

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

/external/jemalloc_new/src/
Dbase.c180 base_extent_bump_alloc_helper(extent_t *extent, size_t *gap_size, size_t size, in base_extent_bump_alloc_helper() argument
187 *gap_size = ALIGNMENT_CEILING((uintptr_t)extent_addr_get(extent), in base_extent_bump_alloc_helper()
189 ret = (void *)((uintptr_t)extent_addr_get(extent) + *gap_size); in base_extent_bump_alloc_helper()
190 assert(extent_bsize_get(extent) >= *gap_size + size); in base_extent_bump_alloc_helper()
192 *gap_size + size), extent_bsize_get(extent) - *gap_size - size, in base_extent_bump_alloc_helper()
198 base_extent_bump_alloc_post(base_t *base, extent_t *extent, size_t gap_size, in base_extent_bump_alloc_post() argument
218 PAGE_CEILING((uintptr_t)addr - gap_size); in base_extent_bump_alloc_post()
224 - HUGEPAGE_CEILING((uintptr_t)addr - gap_size)) >> in base_extent_bump_alloc_post()
235 size_t gap_size; in base_extent_bump_alloc() local
237 ret = base_extent_bump_alloc_helper(extent, &gap_size, size, alignment); in base_extent_bump_alloc()
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_mac.cpp1216 uptr gap_size = gap_end > gap_start ? gap_end - gap_start : 0; in FindAvailableMemoryRange() local
1217 if (size < gap_size) { in FindAvailableMemoryRange()
1221 if (largest_gap_found && *largest_gap_found < gap_size) { in FindAvailableMemoryRange()
1222 *largest_gap_found = gap_size; in FindAvailableMemoryRange()
/external/mesa3d/src/amd/compiler/
Daco_register_allocation.cpp627 unsigned gap_size = 0xFFFF; in get_reg_simple() local
653 if (last_pos + size < current_reg && current_reg - last_pos < gap_size) { in get_reg_simple()
655 gap_size = current_reg - last_pos; in get_reg_simple()
661 if (last_pos + size <= ub && ub - last_pos < gap_size) { in get_reg_simple()
663 gap_size = ub - last_pos; in get_reg_simple()
670 unsigned buffer = gap_size - size; in get_reg_simple()