Home
last modified time | relevance | path

Searched refs:ThreadSafePartitionRoot (Results 1 – 21 of 21) sorted by relevance

/external/cronet/base/allocator/partition_allocator/shim/
Dallocator_shim_default_dispatch_to_partition_alloc.cc144 static partition_alloc::ThreadSafePartitionRoot* New(void* buffer) { in New()
158 auto* new_root = new (buffer) partition_alloc::ThreadSafePartitionRoot({ in New()
172 LeakySingleton<partition_alloc::ThreadSafePartitionRoot,
175 partition_alloc::ThreadSafePartitionRoot* Allocator() { in Allocator()
180 std::atomic<partition_alloc::ThreadSafePartitionRoot*> g_original_root(nullptr);
184 static partition_alloc::ThreadSafePartitionRoot* New(void* buffer) { in New()
189 LeakySingleton<partition_alloc::ThreadSafePartitionRoot,
193 partition_alloc::ThreadSafePartitionRoot* OriginalAllocator() { in OriginalAllocator()
197 partition_alloc::ThreadSafePartitionRoot* AlignedAllocator() { in AlignedAllocator()
322 partition_alloc::ThreadSafePartitionRoot::FreeNoHooks(address); in PartitionAlignedRealloc()
[all …]
Dallocator_shim_default_dispatch_to_partition_alloc.h18 static partition_alloc::ThreadSafePartitionRoot* Allocator();
20 static partition_alloc::ThreadSafePartitionRoot* OriginalAllocator();
22 static partition_alloc::ThreadSafePartitionRoot* AlignedAllocator();
Dallocator_shim_default_dispatch_to_partition_alloc_unittest.cc179 alignof(partition_alloc::ThreadSafePartitionRoot)); in TEST()
183 alignof(partition_alloc::ThreadSafePartitionRoot)); in TEST()
186 alignof(partition_alloc::ThreadSafePartitionRoot)); in TEST()
/external/cronet/base/allocator/partition_allocator/starscan/
Dpcscan_unittest.cc102 ThreadSafePartitionRoot& root() { return *allocator_.root(); } in root()
103 const ThreadSafePartitionRoot& root() const { return *allocator_.root(); } in root()
124 using SlotSpan = ThreadSafePartitionRoot::SlotSpan;
133 FullSlotSpanAllocation GetFullSlotSpan(ThreadSafePartitionRoot& root, in GetFullSlotSpan()
140 ThreadSafePartitionRoot::Bucket& bucket = root.buckets[bucket_index]; in GetFullSlotSpan()
193 static List* Create(ThreadSafePartitionRoot& root, ListBase* next = nullptr) { in Create()
205 static void Destroy(ThreadSafePartitionRoot& root, List* list) { in Destroy()
249 ThreadSafePartitionRoot& value_root) { in TestDanglingReference()
275 ThreadSafePartitionRoot& value_root) { in TestDanglingReferenceNotVisited()
398 ThreadSafePartitionRoot::SlotSpan::FromObject(source_buffer); in TEST_F()
[all …]
Dmetadata_allocator.cc27 ThreadSafePartitionRoot& PCScanMetadataAllocator() { in PA_COMPONENT_EXPORT()
28 static internal::base::NoDestructor<ThreadSafePartitionRoot> allocator( in PA_COMPONENT_EXPORT()
Dmetadata_allocator.h17 ThreadSafePartitionRoot& PCScanMetadataAllocator();
Dpcscan_internal.cc963 [[maybe_unused]] void SweepSuperPage(ThreadSafePartitionRoot* root, in SweepSuperPage()
968 ThreadSafePartitionRoot::FromFirstSuperPage(super_page); in SweepSuperPage()
977 ThreadSafePartitionRoot* root, in SweepSuperPageAndDiscardMarkedQuarantine()
1008 ThreadSafePartitionRoot* root, in SweepSuperPageWithBatchedFree()
1073 auto* root = ThreadSafePartitionRoot::FromFirstSuperPage(super_page); in SweepQuarantine()
/external/cronet/base/allocator/partition_allocator/
Dthread_cache_unittest.cc32 using BucketDistribution = ThreadSafePartitionRoot::BucketDistribution;
102 ThreadSafePartitionRoot* root = allocator_->root(); in SetUp()
139 ThreadSafePartitionRoot* root() { return allocator_->root(); } in root()
146 ThreadSafePartitionRoot::BucketDistribution::kDefault); in GetBucketSizeForThreadCache()
298 ThreadSafePartitionRoot::Free(ptr); in TEST_P()
361 size_t FillThreadCacheAndReturnIndex(ThreadSafePartitionRoot* root, in FillThreadCacheAndReturnIndex()
389 ThreadSafePartitionRoot* root, in ThreadDelegateForMultipleThreadCaches()
406 ThreadSafePartitionRoot* root_ = nullptr;
432 ThreadSafePartitionRoot* root, in ThreadDelegateForThreadCacheReclaimedWhenThreadExits()
444 ThreadSafePartitionRoot* root_ = nullptr;
[all …]
Dextended_api.cc18 void DisableThreadCacheForRootIfEnabled(ThreadSafePartitionRoot* root) { in DisableThreadCacheForRootIfEnabled()
33 ThreadSafePartitionRoot* root) { in EnablePartitionAllocThreadCacheForRootIfDisabled()
69 ThreadSafePartitionRoot* root) in ThreadCacheProcessScopeForTesting()
Dextended_api.h28 explicit ThreadCacheProcessScopeForTesting(ThreadSafePartitionRoot* root);
34 ThreadSafePartitionRoot* root_ = nullptr;
Dpartition_root.cc124 using EnumerateCallback = void (*)(ThreadSafePartitionRoot* root,
140 ThreadSafePartitionRoot* root; in Enumerate()
147 ThreadSafePartitionRoot* root; in Enumerate()
155 void Register(ThreadSafePartitionRoot* root) { in Register()
156 internal::ScopedGuard guard(ThreadSafePartitionRoot::GetEnumeratorLock()); in Register()
165 void Unregister(ThreadSafePartitionRoot* root) { in Unregister()
166 internal::ScopedGuard guard(ThreadSafePartitionRoot::GetEnumeratorLock()); in Unregister()
167 ThreadSafePartitionRoot* prev = root->prev_root; in Unregister()
168 ThreadSafePartitionRoot* next = root->next_root; in Unregister()
187 ThreadSafePartitionRoot* Head(ThreadSafePartitionRoot* roots) { in Head()
[all …]
Dpartition_alloc_perftest.cc100 void Free(void* data) override { ThreadSafePartitionRoot::FreeNoHooks(data); } in Free()
103 ThreadSafePartitionRoot alloc_{{
173 void Free(void* data) override { ThreadSafePartitionRoot::Free(data); } in Free()
177 ThreadSafePartitionRoot alloc_{{
Dpartition_alloc_forward.h64 using ThreadSafePartitionRoot = PartitionRoot<internal::ThreadSafe>; variable
Dgwp_asan_support.cc36 static internal::base::NoDestructor<ThreadSafePartitionRoot> root(kConfig); in MapRegion()
Dpkey_unittest.cc34 partition_alloc::ThreadSafePartitionRoot* allocatorRoot;
Dpartition_root.h2236 using ThreadSafePartitionRoot = PartitionRoot<internal::ThreadSafe>; variable
2238 static_assert(offsetof(ThreadSafePartitionRoot, lock_) ==
Dpartition_alloc_unittest.cc221 using BucketDistribution = ThreadSafePartitionRoot::BucketDistribution;
239 void SetDistributionForPartitionRoot(ThreadSafePartitionRoot* root, in SetDistributionForPartitionRoot()
/external/cronet/base/allocator/dispatcher/
Ddispatcher_unittest.cc30 using partition_alloc::ThreadSafePartitionRoot;
111 ThreadSafePartitionRoot alloc_{{
/external/cronet/base/memory/
Dnonscannable_memory.h50 partition_alloc::ThreadSafePartitionRoot* root() { in root()
Dnonscannable_memory.cc57 partition_alloc::ThreadSafePartitionRoot::FreeNoHooks(ptr); in Free()
/external/pdfium/core/fxcrt/
Dfx_memory_pa.cpp141 partition_alloc::ThreadSafePartitionRoot::Free(ptr); in FX_Free()