Home
last modified time | relevance | path

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

/external/libchrome/base/allocator/
Dallocator_shim.h48 struct AllocatorDispatch { struct
49 using AllocFn = void*(const AllocatorDispatch* self, argument
52 using AllocZeroInitializedFn = void*(const AllocatorDispatch* self, argument
56 using AllocAlignedFn = void*(const AllocatorDispatch* self, argument
60 using ReallocFn = void*(const AllocatorDispatch* self, argument
64 using FreeFn = void(const AllocatorDispatch* self, argument
71 using GetSizeEstimateFn = size_t(const AllocatorDispatch* self, argument
74 using BatchMallocFn = unsigned(const AllocatorDispatch* self, argument
79 using BatchFreeFn = void(const AllocatorDispatch* self, argument
83 using FreeDefiniteSizeFn = void(const AllocatorDispatch* self, argument
[all …]
Dallocator_shim_default_dispatch_to_glibc.cc23 using base::allocator::AllocatorDispatch;
25 void* GlibcMalloc(const AllocatorDispatch*, size_t size, void* context) { in GlibcMalloc() argument
29 void* GlibcCalloc(const AllocatorDispatch*, in GlibcCalloc() argument
36 void* GlibcRealloc(const AllocatorDispatch*, in GlibcRealloc() argument
43 void* GlibcMemalign(const AllocatorDispatch*, in GlibcMemalign() argument
50 void GlibcFree(const AllocatorDispatch*, void* address, void* context) { in GlibcFree() argument
54 size_t GlibcGetSizeEstimate(const AllocatorDispatch*, in GlibcGetSizeEstimate() argument
64 const AllocatorDispatch AllocatorDispatch::default_dispatch = {
Dallocator_shim.cc40 &allocator::AllocatorDispatch::default_dispatch);
67 inline const allocator::AllocatorDispatch* GetChainHead() { in GetChainHead()
71 return reinterpret_cast<const allocator::AllocatorDispatch*>( in GetChainHead()
90 const allocator::AllocatorDispatch* const chain_head = GetChainHead(); in UncheckedAlloc()
94 void InsertAllocatorDispatch(AllocatorDispatch* dispatch) { in InsertAllocatorDispatch()
98 const AllocatorDispatch* chain_head = GetChainHead(); in InsertAllocatorDispatch()
123 void RemoveAllocatorDispatchForTesting(AllocatorDispatch* dispatch) { in RemoveAllocatorDispatchForTesting()
152 const allocator::AllocatorDispatch* const chain_head = GetChainHead(); in ShimCppNew()
169 const allocator::AllocatorDispatch* const chain_head = GetChainHead(); in ShimCppDelete()
174 const allocator::AllocatorDispatch* const chain_head = GetChainHead(); in ShimMalloc()
[all …]
Dallocator_shim_default_dispatch_to_linker_wrapped_symbols.cc36 using base::allocator::AllocatorDispatch;
38 void* RealMalloc(const AllocatorDispatch*, size_t size, void* context) { in RealMalloc() argument
42 void* RealCalloc(const AllocatorDispatch*, in RealCalloc() argument
49 void* RealRealloc(const AllocatorDispatch*, in RealRealloc() argument
56 void* RealMemalign(const AllocatorDispatch*, in RealMemalign() argument
63 void RealFree(const AllocatorDispatch*, void* address, void* context) { in RealFree() argument
71 size_t RealSizeEstimate(const AllocatorDispatch*, in RealSizeEstimate() argument
102 const AllocatorDispatch AllocatorDispatch::default_dispatch = {
/external/libchrome/base/debug/
Dthread_heap_usage_tracker.cc31 using base::allocator::AllocatorDispatch;
67 size_t GetAllocSizeEstimate(const AllocatorDispatch* next, in GetAllocSizeEstimate()
76 void RecordAlloc(const AllocatorDispatch* next, in RecordAlloc()
104 void RecordFree(const AllocatorDispatch* next, void* ptr, void* context) { in RecordFree()
114 void* AllocFn(const AllocatorDispatch* self, size_t size, void* context) { in AllocFn()
122 void* AllocZeroInitializedFn(const AllocatorDispatch* self, in AllocZeroInitializedFn()
134 void* AllocAlignedFn(const AllocatorDispatch* self, in AllocAlignedFn()
146 void* ReallocFn(const AllocatorDispatch* self, in ReallocFn()
160 void FreeFn(const AllocatorDispatch* self, void* address, void* context) { in FreeFn()
166 size_t GetSizeEstimateFn(const AllocatorDispatch* self, in GetSizeEstimateFn()
[all …]
Dthread_heap_usage_tracker_unittest.cc35 using AllocatorDispatch = base::allocator::AllocatorDispatch; typedef in base::debug::__anon9d24cb830111::ThreadHeapUsageTrackerTest
134 static void* OnAllocFn(const AllocatorDispatch* self, in OnAllocFn()
144 static void* OnAllocZeroInitializedFn(const AllocatorDispatch* self, in OnAllocZeroInitializedFn()
155 static void* OnAllocAlignedFn(const AllocatorDispatch* self, in OnAllocAlignedFn()
168 static void* OnReallocFn(const AllocatorDispatch* self, in OnReallocFn()
180 static void OnFreeFn(const AllocatorDispatch* self, in OnFreeFn()
189 static size_t OnGetSizeEstimateFn(const AllocatorDispatch* self, in OnGetSizeEstimateFn()
201 AllocatorDispatch* dispatch_under_test_;
203 static base::allocator::AllocatorDispatch g_mock_dispatch;
211 base::allocator::AllocatorDispatch ThreadHeapUsageTrackerTest::g_mock_dispatch =
Dthread_heap_usage_tracker.h16 struct AllocatorDispatch;
102 static base::allocator::AllocatorDispatch* GetDispatchForTesting();
/external/libchrome/base/sampling_heap_profiler/
Dsampling_heap_profiler.cc31 using base::allocator::AllocatorDispatch;
58 void* AllocFn(const AllocatorDispatch* self, size_t size, void* context) { in AllocFn()
64 void* AllocZeroInitializedFn(const AllocatorDispatch* self, in AllocZeroInitializedFn()
75 void* AllocAlignedFn(const AllocatorDispatch* self, in AllocAlignedFn()
85 void* ReallocFn(const AllocatorDispatch* self, in ReallocFn()
96 void FreeFn(const AllocatorDispatch* self, void* address, void* context) { in FreeFn()
101 size_t GetSizeEstimateFn(const AllocatorDispatch* self, in GetSizeEstimateFn()
107 unsigned BatchMallocFn(const AllocatorDispatch* self, in BatchMallocFn()
121 void BatchFreeFn(const AllocatorDispatch* self, in BatchFreeFn()
131 void FreeDefiniteSizeFn(const AllocatorDispatch* self, in FreeDefiniteSizeFn()
[all …]