Home
last modified time | relevance | path

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

/external/pdfium/third_party/base/allocator/partition_allocator/
Dpartition_alloc.cc23 static_assert(pdfium::base::kSystemPageSize * 4 <=
27 pdfium::base::kSystemPageSize),
40 pdfium::base::kSystemPageSize,
75 if (size > kMaxSystemPagesPerSlotSpan * kSystemPageSize) { in PartitionBucketNumSystemPages()
76 DCHECK(!(size % kSystemPageSize)); in PartitionBucketNumSystemPages()
77 best_pages = static_cast<uint16_t>(size / kSystemPageSize); in PartitionBucketNumSystemPages()
81 DCHECK(size <= kMaxSystemPagesPerSlotSpan * kSystemPageSize); in PartitionBucketNumSystemPages()
84 size_t page_size = kSystemPageSize * i; in PartitionBucketNumSystemPages()
402 SetSystemPagesInaccessible(super_page, kSystemPageSize); in PartitionAllocPartitionPages()
403 SetSystemPagesInaccessible(super_page + (kSystemPageSize * 2), in PartitionAllocPartitionPages()
[all …]
Dpage_allocator.h37 static const size_t kSystemPageSize = 16384; variable
39 static const size_t kSystemPageSize = 4096; variable
41 static const size_t kSystemPageOffsetMask = kSystemPageSize - 1;
Dpartition_alloc.h115 kPartitionPageSize / kSystemPageSize;
207 static const size_t kGenericMaxDirectMapped = INT_MAX - kSystemPageSize;
560 return reinterpret_cast<char*>(pointer_as_uint + kSystemPageSize); in PartitionSuperPageToMetadataArea()
587 DCHECK(super_page_offset > kSystemPageSize); in PartitionPageToPointer()
588 DCHECK(super_page_offset < kSystemPageSize + (kNumPartitionPagesPerSuperPage * in PartitionPageToPointer()
591 (super_page_offset - kSystemPageSize) >> kPageMetadataShift; in PartitionPageToPointer()
617 return bucket->num_system_pages_per_slot_span * kSystemPageSize; in PartitionBucketBytes()
630 if (bucket->slot_size <= kMaxSystemPagesPerSlotSpan * kSystemPageSize) in PartitionPageGetRawSizePtr()
633 DCHECK((bucket->slot_size % kSystemPageSize) == 0); in PartitionPageGetRawSizePtr()