Home
last modified time | relevance | path

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

/external/pdfium/third_party/base/allocator/partition_allocator/
Dpage_allocator.cc76 size_t pre_slack = reinterpret_cast<uintptr_t>(base) & (alignment - 1); in TrimMapping() local
77 if (pre_slack) { in TrimMapping()
78 pre_slack = alignment - pre_slack; in TrimMapping()
80 size_t post_slack = base_length - pre_slack - trim_length; in TrimMapping()
81 DCHECK(base_length >= trim_length || pre_slack || post_slack); in TrimMapping()
82 DCHECK(pre_slack < base_length); in TrimMapping()
85 commit, pre_slack, post_slack); in TrimMapping()
Dpage_allocator_internals_posix.h132 size_t pre_slack, in TrimMappingInternal() argument
137 if (pre_slack) { in TrimMappingInternal()
138 int res = munmap(base, pre_slack); in TrimMappingInternal()
140 ret = reinterpret_cast<char*>(base) + pre_slack; in TrimMappingInternal()
Dpage_allocator_internals_win.h55 size_t pre_slack, in TrimMappingInternal() argument
58 if (pre_slack || post_slack) { in TrimMappingInternal()
61 ret = reinterpret_cast<char*>(base) + pre_slack; in TrimMappingInternal()