Home
last modified time | relevance | path

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

/external/pdfium/third_party/base/allocator/partition_allocator/
Dpage_allocator.cc84 size_t pre_slack = reinterpret_cast<uintptr_t>(base) & (align - 1); in TrimMapping() local
85 if (pre_slack) in TrimMapping()
86 pre_slack = align - pre_slack; in TrimMapping()
87 size_t post_slack = base_length - pre_slack - trim_length; in TrimMapping()
88 DCHECK(base_length >= trim_length || pre_slack || post_slack); in TrimMapping()
89 DCHECK(pre_slack < base_length); in TrimMapping()
95 if (pre_slack) { in TrimMapping()
96 int res = munmap(base, pre_slack); in TrimMapping()
98 ret = reinterpret_cast<char*>(base) + pre_slack; in TrimMapping()
105 if (pre_slack || post_slack) { in TrimMapping()
[all …]