Home
last modified time | relevance | path

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

/external/pdfium/third_party/base/allocator/partition_allocator/
Dpartition_alloc.cc296 return (page->num_allocated_slots > 0 && in PartitionPageStateIsActive()
303 bool ret = (page->num_allocated_slots == PartitionBucketSlots(page->bucket)); in PartitionPageStateIsFull()
314 return (!page->num_allocated_slots && page->freelist_head); in PartitionPageStateIsEmpty()
321 bool ret = (!page->num_allocated_slots && !page->freelist_head); in PartitionPageStateIsDecommitted()
506 DCHECK(num_slots + page->num_allocated_slots == PartitionBucketSlots(bucket)); in PartitionPageAllocAndFillFreelist()
509 DCHECK(page->num_allocated_slots >= 0); in PartitionPageAllocAndFillFreelist()
513 char* return_object = base + (size * page->num_allocated_slots); in PartitionPageAllocAndFillFreelist()
545 page->num_allocated_slots++; in PartitionPageAllocAndFillFreelist()
605 page->num_allocated_slots = -page->num_allocated_slots; in PartitionSetNewActivePage()
686 DCHECK(!page->num_allocated_slots); in PartitionDirectMap()
[all …]
Dpartition_alloc.h268 int16_t num_allocated_slots; member
665 DCHECK(page->num_allocated_slots >= 0); in PartitionBucketAlloc()
676 page->num_allocated_slots++; in PartitionBucketAlloc()
737 DCHECK(page->num_allocated_slots); in PartitionFreeWithPage()
746 --page->num_allocated_slots; in PartitionFreeWithPage()
747 if (UNLIKELY(page->num_allocated_slots <= 0)) { in PartitionFreeWithPage()