Home
last modified time | relevance | path

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

/external/pdfium/third_party/base/allocator/partition_allocator/
Dpage_allocator_constants.h29 static constexpr size_t kSystemPageSize = 16384; variable
35 static constexpr size_t kSystemPageSize = 65536; variable
37 static constexpr size_t kSystemPageSize = 4096; variable
39 static constexpr size_t kSystemPageOffsetMask = kSystemPageSize - 1;
40 static_assert((kSystemPageSize & (kSystemPageSize - 1)) == 0,
Dpartition_bucket.cc36 map_size += kSystemPageSize; in PartitionDirectMap()
48 size_t committed_page_size = size + kSystemPageSize; in PartitionDirectMap()
53 SetSystemPagesAccess(ptr + (kSystemPageSize * 2), in PartitionDirectMap()
54 kPartitionPageSize - (kSystemPageSize * 2), in PartitionDirectMap()
57 SetSystemPagesAccess(ptr, kSystemPageSize, PageInaccessible); in PartitionDirectMap()
58 SetSystemPagesAccess(slot + size, kSystemPageSize, PageInaccessible); in PartitionDirectMap()
93 map_extent->map_size = map_size - kPartitionPageSize - kSystemPageSize; in PartitionDirectMap()
136 if (slot_size > kMaxSystemPagesPerSlotSpan * kSystemPageSize) { in get_system_pages_per_slot_span()
139 DCHECK(!(slot_size % kSystemPageSize)); in get_system_pages_per_slot_span()
140 best_pages = static_cast<uint16_t>(slot_size / kSystemPageSize); in get_system_pages_per_slot_span()
[all …]
Dpartition_page.h124 return reinterpret_cast<char*>(pointer_as_uint + kSystemPageSize); in PartitionSuperPageToMetadataArea()
157 DCHECK(super_page_offset > kSystemPageSize); in ToPointer()
159 DCHECK(super_page_offset < kSystemPageSize + (kNumPartitionPagesPerSuperPage * in ToPointer()
162 (super_page_offset - kSystemPageSize) >> kPageMetadataShift; in ToPointer()
187 if (bucket->slot_size <= kMaxSystemPagesPerSlotSpan * kSystemPageSize) in get_raw_size_ptr()
190 DCHECK((bucket->slot_size % kSystemPageSize) == 0); in get_raw_size_ptr()
Dpartition_alloc.cc26 static_assert(kSystemPageSize * 4 <= kPartitionPageSize,
28 static_assert(!(kPartitionPageSize % kSystemPageSize),
38 kSystemPageSize,
316 if ((new_size / kSystemPageSize) * 5 < (map_size / kSystemPageSize) * 4) in PartitionReallocDirectMappedInPlace()
458 if (slot_size < kSystemPageSize || !page->num_allocated_slots) in PartitionPurgePage()
478 (kPartitionPageSize * kMaxPartitionPagesPerSlotSpan) / kSystemPageSize; in PartitionPurgePage()
629 if (bucket->slot_size >= kSystemPageSize) in PurgeMemory()
Dpartition_page.cc36 unmap_size += kPartitionPageSize + kSystemPageSize; in PartitionDirectUnmap()
38 size_t uncommitted_page_size = page->bucket->slot_size + kSystemPageSize; in PartitionDirectUnmap()
Dpartition_bucket.h53 return num_system_pages_per_slot_span * kSystemPageSize; in get_bytes_per_span()
Dpartition_alloc_constants.h59 kPartitionPageSize / kSystemPageSize;