Home
last modified time | relevance | path

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

/external/libchrome/base/allocator/
Dallocator_shim.h47 struct AllocatorDispatch { struct
48 using AllocFn = void*(const AllocatorDispatch* self, size_t size); argument
49 using AllocZeroInitializedFn = void*(const AllocatorDispatch* self, argument
52 using AllocAlignedFn = void*(const AllocatorDispatch* self, argument
55 using ReallocFn = void*(const AllocatorDispatch* self, argument
58 using FreeFn = void(const AllocatorDispatch* self, void* address); argument
66 const AllocatorDispatch* next; argument
71 static const AllocatorDispatch default_dispatch; argument
86 BASE_EXPORT void InsertAllocatorDispatch(AllocatorDispatch* dispatch);
91 BASE_EXPORT void RemoveAllocatorDispatchForTesting(AllocatorDispatch* dispatch);
Dallocator_shim_default_dispatch_to_linker_wrapped_symbols.cc26 using base::allocator::AllocatorDispatch;
28 void* RealMalloc(const AllocatorDispatch*, size_t size) { in RealMalloc() argument
32 void* RealCalloc(const AllocatorDispatch*, size_t n, size_t size) { in RealCalloc() argument
36 void* RealRealloc(const AllocatorDispatch*, void* address, size_t size) { in RealRealloc() argument
40 void* RealMemalign(const AllocatorDispatch*, size_t alignment, size_t size) { in RealMemalign() argument
44 void RealFree(const AllocatorDispatch*, void* address) { in RealFree() argument
50 const AllocatorDispatch AllocatorDispatch::default_dispatch = {
Dallocator_shim_default_dispatch_to_glibc.cc21 using base::allocator::AllocatorDispatch;
23 void* GlibcMalloc(const AllocatorDispatch*, size_t size) { in GlibcMalloc() argument
27 void* GlibcCalloc(const AllocatorDispatch*, size_t n, size_t size) { in GlibcCalloc() argument
31 void* GlibcRealloc(const AllocatorDispatch*, void* address, size_t size) { in GlibcRealloc() argument
35 void* GlibcMemalign(const AllocatorDispatch*, size_t alignment, size_t size) { in GlibcMemalign() argument
39 void GlibcFree(const AllocatorDispatch*, void* address) { in GlibcFree() argument
45 const AllocatorDispatch AllocatorDispatch::default_dispatch = {
Dallocator_shim.cc28 &allocator::AllocatorDispatch::default_dispatch);
74 inline const allocator::AllocatorDispatch* GetChainHead() { in GetChainHead()
78 return reinterpret_cast<const allocator::AllocatorDispatch*>( in GetChainHead()
97 const allocator::AllocatorDispatch* const chain_head = GetChainHead(); in UncheckedAlloc()
101 void InsertAllocatorDispatch(AllocatorDispatch* dispatch) { in InsertAllocatorDispatch()
119 void RemoveAllocatorDispatchForTesting(AllocatorDispatch* dispatch) { in RemoveAllocatorDispatchForTesting()
147 const allocator::AllocatorDispatch* const chain_head = GetChainHead(); in ShimCppNew()
156 const allocator::AllocatorDispatch* const chain_head = GetChainHead(); in ShimCppDelete()
161 const allocator::AllocatorDispatch* const chain_head = GetChainHead(); in ShimMalloc()
170 const allocator::AllocatorDispatch* const chain_head = GetChainHead(); in ShimCalloc()
[all …]
/external/libchrome/base/trace_event/
Dmalloc_dump_provider.cc32 using allocator::AllocatorDispatch;
34 void* HookAlloc(const AllocatorDispatch* self, size_t size) { in HookAlloc()
35 const AllocatorDispatch* const next = self->next; in HookAlloc()
42 void* HookZeroInitAlloc(const AllocatorDispatch* self, size_t n, size_t size) { in HookZeroInitAlloc()
43 const AllocatorDispatch* const next = self->next; in HookZeroInitAlloc()
50 void* HookllocAligned(const AllocatorDispatch* self, in HookllocAligned()
53 const AllocatorDispatch* const next = self->next; in HookllocAligned()
60 void* HookRealloc(const AllocatorDispatch* self, void* address, size_t size) { in HookRealloc()
61 const AllocatorDispatch* const next = self->next; in HookRealloc()
69 void HookFree(const AllocatorDispatch* self, void* address) { in HookFree()
[all …]