#include "partition_alloc/extended_api.h"
#include "partition_alloc/buildflags.h"
#include "partition_alloc/partition_alloc_config.h"
#include "partition_alloc/shim/allocator_shim_default_dispatch_to_partition_alloc.h"
#include "partition_alloc/thread_cache.h"
namespace partition_alloc::internal {
#if PA_CONFIG(THREAD_CACHE_SUPPORTED)
namespace {
void DisableThreadCacheForRootIfEnabled(PartitionRoot* root) { … }
void EnablePartitionAllocThreadCacheForRootIfDisabled(PartitionRoot* root) { … }
#if PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
void DisablePartitionAllocThreadCacheForProcess() { … }
#endif
}
#endif
ThreadAllocStats GetAllocStatsForCurrentThread() { … }
#if PA_CONFIG(THREAD_CACHE_SUPPORTED)
ThreadCacheProcessScopeForTesting::ThreadCacheProcessScopeForTesting(
PartitionRoot* root)
: … { … }
ThreadCacheProcessScopeForTesting::~ThreadCacheProcessScopeForTesting() { … }
#endif
}