Home
last modified time | relevance | path

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

/aosp_15_r20/external/cronet/base/allocator/partition_allocator/src/partition_alloc/
H A Dthread_cache.cc30 ThreadCacheRegistry g_instance;
82 ThreadCacheRegistry& ThreadCacheRegistry::Instance() { in Instance()
91 void ThreadCacheRegistry::RegisterThreadCache(ThreadCache* cache) { in RegisterThreadCache()
104 void ThreadCacheRegistry::UnregisterThreadCache(ThreadCache* cache) { in UnregisterThreadCache()
117 void ThreadCacheRegistry::DumpStats(bool my_thread_only, in DumpStats()
142 void ThreadCacheRegistry::PurgeAll() { in PurgeAll()
178 void ThreadCacheRegistry::ForcePurgeAllThreadAfterForkUnsafe() { in ForcePurgeAllThreadAfterForkUnsafe()
214 void ThreadCacheRegistry::SetLargestActiveBucketIndex( in SetLargestActiveBucketIndex()
219 void ThreadCacheRegistry::SetThreadCacheMultiplier(float multiplier) { in SetThreadCacheMultiplier()
251 void ThreadCacheRegistry::SetPurgingConfiguration( in SetPurgingConfiguration()
[all …]
H A Dthread_cache.h106 class PA_COMPONENT_EXPORT(PARTITION_ALLOC) ThreadCacheRegistry { in PA_COMPONENT_EXPORT()
108 static ThreadCacheRegistry& Instance(); in PA_COMPONENT_EXPORT()
122 inline constexpr ThreadCacheRegistry(); in PA_COMPONENT_EXPORT()
193 constexpr ThreadCacheRegistry::ThreadCacheRegistry() = default;
389 PA_EXCLUSIVE_LOCKS_REQUIRED(ThreadCacheRegistry::GetLock()) { in PA_COMPONENT_EXPORT()
393 PA_EXCLUSIVE_LOCKS_REQUIRED(ThreadCacheRegistry::GetLock()) { in PA_COMPONENT_EXPORT()
478 ThreadCache* next_ PA_GUARDED_BY(ThreadCacheRegistry::GetLock()); in PA_COMPONENT_EXPORT()
479 ThreadCache* prev_ PA_GUARDED_BY(ThreadCacheRegistry::GetLock()); in PA_COMPONENT_EXPORT()
484 friend class ThreadCacheRegistry; in PA_COMPONENT_EXPORT() local
H A Dthread_cache_unittest.cc132 ThreadCacheRegistry::Instance().SetThreadCacheMultiplier( in SetUp()
134 ThreadCacheRegistry::Instance().SetPurgingConfiguration( in SetUp()
149 ThreadCacheRegistry::Instance().ResetForTesting(); in SetUp()
523 internal::ScopedGuard lock(ThreadCacheRegistry::GetLock()); in ThreadMain()
536 TEST_P(PartitionAllocThreadCacheTest, ThreadCacheRegistry) { in TEST_P() argument
554 internal::ScopedGuard lock(ThreadCacheRegistry::GetLock()); in TEST_P()
571 internal::ScopedGuard lock(ThreadCacheRegistry::GetLock()); in TEST_P()
618 ThreadCacheRegistry::Instance().DumpStats(true, &stats); in TEST_P()
651 ThreadCacheRegistry::Instance().DumpStats(false, &stats); in ThreadMain()
691 ThreadCacheRegistry::Instance().DumpStats(false, &wqthread_stats); in TEST_P()
[all …]
H A Dpartition_root.cc225 ThreadCacheRegistry::GetLock().Acquire(); in BeforeForkInParent()
246 UnlockOrReinit(ThreadCacheRegistry::GetLock(), in_child); in ReleaseLocks()
270 ThreadCacheRegistry::Instance().ForcePurgeAllThreadAfterForkUnsafe(); in AfterForkInChild()
1521 ThreadCacheRegistry::Instance().DumpStats( in DumpStats()
1523 ThreadCacheRegistry::Instance().DumpStats(false, in DumpStats()
H A Dmemory_reclaimer.cc84 ThreadCacheRegistry::Instance().PurgeAll(); in Reclaim()
H A Dextended_api.cc25 ThreadCacheRegistry::Instance().PurgeAll(); in DisableThreadCacheForRootIfEnabled()
H A Dpartition_alloc_perftest.cc118 ThreadCacheRegistry::Instance().PurgeAll(); in PartitionAllocatorWithThreadCache()
/aosp_15_r20/external/cronet/base/allocator/
H A Dpartition_alloc_support.cc251 auto& instance = ::partition_alloc::ThreadCacheRegistry::Instance(); in RunThreadCachePeriodicPurge()
282 auto& instance = ::partition_alloc::ThreadCacheRegistry::Instance(); in StartThreadCachePeriodicPurge()
1309 partition_alloc::ThreadCacheRegistry::Instance().SetPurgingConfiguration( in ReconfigureAfterTaskRunnerInit()
1322 ::partition_alloc::ThreadCacheRegistry::Instance().SetThreadCacheMultiplier( in ReconfigureAfterTaskRunnerInit()
1325 ::partition_alloc::ThreadCacheRegistry::Instance().SetThreadCacheMultiplier( in ReconfigureAfterTaskRunnerInit()
1335 ::partition_alloc::ThreadCacheRegistry::Instance() in ReconfigureAfterTaskRunnerInit()