Home
last modified time | relevance | path

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

/external/pdfium/third_party/base/allocator/partition_allocator/
Dpartition_page.cc95 if (LIKELY(num_allocated_slots == 0)) { in FreeSlowPath()
115 DCHECK(num_allocated_slots < 0); in FreeSlowPath()
118 CHECK(num_allocated_slots != -1); in FreeSlowPath()
119 num_allocated_slots = -num_allocated_slots - 2; in FreeSlowPath()
120 DCHECK(num_allocated_slots == bucket->get_slots_per_span() - 1); in FreeSlowPath()
132 if (UNLIKELY(num_allocated_slots == 0)) in FreeSlowPath()
Dpartition_page.h57 int16_t num_allocated_slots; member
220 DCHECK(num_allocated_slots); in Free()
230 --num_allocated_slots; in Free()
231 if (UNLIKELY(num_allocated_slots <= 0)) { in Free()
243 return (num_allocated_slots > 0 && in is_active()
250 bool ret = (num_allocated_slots == bucket->get_slots_per_span()); in is_full()
261 return (!num_allocated_slots && freelist_head); in is_empty()
267 bool ret = (!num_allocated_slots && !freelist_head); in is_decommitted()
Dpartition_bucket.cc74 DCHECK(!page->num_allocated_slots); in PartitionDirectMap()
347 DCHECK(num_slots + page->num_allocated_slots == get_slots_per_span()); in AllocAndFillFreelist()
350 DCHECK(page->num_allocated_slots >= 0); in AllocAndFillFreelist()
354 char* return_object = base + (size * page->num_allocated_slots); in AllocAndFillFreelist()
386 page->num_allocated_slots++; in AllocAndFillFreelist()
439 page->num_allocated_slots = -page->num_allocated_slots; in SetNewActivePage()
559 new_page->num_allocated_slots++; in SlowPathAlloc()
Dpartition_root_base.h99 DCHECK(page->num_allocated_slots >= 0); in AllocFromBucket()
113 page->num_allocated_slots++; in AllocFromBucket()
Dpartition_alloc.cc458 if (slot_size < kSystemPageSize || !page->num_allocated_slots) in PartitionPurgePage()
565 DCHECK(num_new_entries == num_slots - page->num_allocated_slots); in PartitionPurgePage()
651 (page->num_allocated_slots * stats_out->bucket_slot_size); in PartitionDumpPageStats()