Home
last modified time | relevance | path

Searched refs:GetUsableSize (Results 1 – 8 of 8) sorted by relevance

/external/cronet/base/allocator/partition_allocator/
Dpartition_root.h536 PA_ALWAYS_INLINE static size_t GetUsableSize(void* ptr); in PA_COMPONENT_EXPORT()
1069 for (size_t i = 0; i < slot_span->GetUsableSize(root); ++i) { in PartitionAllocFreeForRefCounting()
1121 PA_DCHECK(*usable_size == slot_span->GetUsableSize(this)); in AllocFromBucket()
1150 *usable_size = slot_span->GetUsableSize(this); in AllocFromBucket()
1291 PCScan::MoveToQuarantine(object, slot_span->GetUsableSize(root), in FreeNoHooks()
1345 slot_span->GetUsableSize(this)); in FreeNoHooksImmediate()
1370 auto usable_size = slot_span->GetUsableSize(this); in FreeNoHooksImmediate()
1536 PA_DCHECK(usable_size == slot_span->GetUsableSize(this)); in RawFreeWithThreadCache()
1548 size_t usable_size = slot_span->GetUsableSize(this); in RawFreeWithThreadCache()
1717 PA_ALWAYS_INLINE size_t PartitionRoot<thread_safe>::GetUsableSize(void* ptr) { in GetUsableSize() function
[all …]
Dpartition_root.cc89 uintptr_t object_end = object_addr + slot_span->GetUsableSize(root); in IsPtrWithinSameAlloc()
1108 size_t current_usable_size = slot_span->GetUsableSize(this); in TryReallocInPlaceForDirectMap()
1169 thread_cache->RecordAllocation(slot_span->GetUsableSize(this)); in TryReallocInPlaceForDirectMap()
1177 slot_span->GetUsableSize(this)); in TryReallocInPlaceForDirectMap()
1199 size_t current_usable_size = slot_span->GetUsableSize(this); in TryReallocInPlaceForNormalBuckets()
1227 slot_span->GetUsableSize(this)); in TryReallocInPlaceForNormalBuckets()
1238 thread_cache->RecordAllocation(slot_span->GetUsableSize(this)); in TryReallocInPlaceForNormalBuckets()
1293 old_usable_size = slot_span->GetUsableSize(old_root); in ReallocWithFlags()
Dthread_cache_unittest.cc1304 expected_total_size += root()->GetUsableSize(ptr); in TEST_P()
1307 expected_total_size += root()->GetUsableSize(ptr2); in TEST_P()
1310 expected_total_size += root()->GetUsableSize(ptr3); in TEST_P()
1313 expected_total_size += root()->GetUsableSize(ptr4); in TEST_P()
1362 total_size += root()->GetUsableSize(ptr); in TEST_P()
1401 size_t usable_size = root()->GetUsableSize(ptr); in TEST_P()
1408 usable_size = root()->GetUsableSize(ptr); in TEST_P()
Dpartition_page.h262 GetUsableSize(PartitionRoot<thread_safe>* root) const { in GetUsableSize() function
693 root->flags.extras_offset + slot_span->GetUsableSize(root)); in FromObjectInnerAddr()
Dpartition_alloc_unittest.cc1967 size_t very_small_actual_size = allocator.root()->GetUsableSize(ptr); in TEST_P()
3721 EXPECT_EQ(0ULL, PartitionRoot<ThreadSafe>::GetUsableSize(nullptr)); in TEST_P()
3724 TEST_P(PartitionAllocTest, GetUsableSize) { in TEST_P() argument
3729 size_t usable_size = PartitionRoot<ThreadSafe>::GetUsableSize(ptr); in TEST_P()
3748 size_t usable_size = PartitionRoot<ThreadSafe>::GetUsableSize(ptr); in TEST_P()
/external/cronet/base/allocator/partition_allocator/shim/
Dallocator_shim_unittest.cc626 static size_t GetUsableSize(void* ptr) { in GetUsableSize() function
630 static size_t GetUsableSize(void* ptr) { in GetUsableSize() function
634 static size_t GetUsableSize(void* ptr) { in GetUsableSize() function
644 EXPECT_EQ(GetUsableSize(kTestSizeEstimateAddress), kTestSizeEstimate); in TEST_F()
650 size_t sz = GetUsableSize(alloc); in TEST_F()
654 EXPECT_EQ(GetUsableSize(alloc), sz); in TEST_F()
Dallocator_shim_default_dispatch_to_partition_alloc.cc331 partition_alloc::ThreadSafePartitionRoot::GetUsableSize(address); in PartitionAlignedRealloc()
/external/cronet/base/allocator/partition_allocator/starscan/
Dpcscan_internal.cc739 const size_t size = slot_span->GetUsableSize(root); in ClearQuarantinedSlotsAndPrepareCardTable()