Home
last modified time | relevance | path

Searched refs:AllocatorDispatch (Results 1 – 6 of 6) 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.cc40 &allocator::AllocatorDispatch::default_dispatch);
81 inline const allocator::AllocatorDispatch* GetChainHead() { in GetChainHead()
85 return reinterpret_cast<const allocator::AllocatorDispatch*>( in GetChainHead()
104 const allocator::AllocatorDispatch* const chain_head = GetChainHead(); in UncheckedAlloc()
108 void InsertAllocatorDispatch(AllocatorDispatch* dispatch) { in InsertAllocatorDispatch()
112 const AllocatorDispatch* chain_head = GetChainHead(); in InsertAllocatorDispatch()
137 void RemoveAllocatorDispatchForTesting(AllocatorDispatch* dispatch) { in RemoveAllocatorDispatchForTesting()
166 const allocator::AllocatorDispatch* const chain_head = GetChainHead(); in ShimCppNew()
183 const allocator::AllocatorDispatch* const chain_head = GetChainHead(); in ShimCppDelete()
188 const allocator::AllocatorDispatch* const chain_head = GetChainHead(); in ShimMalloc()
[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_default_dispatch_to_linker_wrapped_symbols.cc33 using base::allocator::AllocatorDispatch;
35 void* RealMalloc(const AllocatorDispatch*, size_t size, void* context) { in RealMalloc() argument
39 void* RealCalloc(const AllocatorDispatch*, in RealCalloc() argument
46 void* RealRealloc(const AllocatorDispatch*, in RealRealloc() argument
53 void* RealMemalign(const AllocatorDispatch*, in RealMemalign() argument
60 void RealFree(const AllocatorDispatch*, void* address, void* context) { in RealFree() argument
68 size_t RealSizeEstimate(const AllocatorDispatch*, in RealSizeEstimate() argument
99 const AllocatorDispatch AllocatorDispatch::default_dispatch = {
/external/libchrome/base/trace_event/
Dmalloc_dump_provider.cc36 using allocator::AllocatorDispatch;
38 void* HookAlloc(const AllocatorDispatch* self, size_t size, void* context) { in HookAlloc()
39 const AllocatorDispatch* const next = self->next; in HookAlloc()
46 void* HookZeroInitAlloc(const AllocatorDispatch* self, in HookZeroInitAlloc()
50 const AllocatorDispatch* const next = self->next; in HookZeroInitAlloc()
57 void* HookAllocAligned(const AllocatorDispatch* self, in HookAllocAligned()
61 const AllocatorDispatch* const next = self->next; in HookAllocAligned()
68 void* HookRealloc(const AllocatorDispatch* self, in HookRealloc()
72 const AllocatorDispatch* const next = self->next; in HookRealloc()
80 void HookFree(const AllocatorDispatch* self, void* address, void* context) { in HookFree()
[all …]
/external/libchrome/base/debug/
Dthread_heap_usage_tracker.h16 struct AllocatorDispatch;
102 static base::allocator::AllocatorDispatch* GetDispatchForTesting();