| Index: base/trace_event/malloc_dump_provider.cc
|
| diff --git a/base/trace_event/malloc_dump_provider.cc b/base/trace_event/malloc_dump_provider.cc
|
| index d7732aba664ebf38532d247c562c1df98ebe62e2..26eb92319a23458cf2720248c5eafabb161bace5 100644
|
| --- a/base/trace_event/malloc_dump_provider.cc
|
| +++ b/base/trace_event/malloc_dump_provider.cc
|
| @@ -77,13 +77,19 @@ void HookFree(const AllocatorDispatch* self, void* address) {
|
| next->free_function(next, address);
|
| }
|
|
|
| +size_t HookGetSizeEstimate(const AllocatorDispatch* self, void* address) {
|
| + const AllocatorDispatch* const next = self->next;
|
| + return next->get_size_estimate_function(next, address);
|
| +}
|
| +
|
| AllocatorDispatch g_allocator_hooks = {
|
| - &HookAlloc, /* alloc_function */
|
| - &HookZeroInitAlloc, /* alloc_zero_initialized_function */
|
| - &HookllocAligned, /* alloc_aligned_function */
|
| - &HookRealloc, /* realloc_function */
|
| - &HookFree, /* free_function */
|
| - nullptr, /* next */
|
| + &HookAlloc, /* alloc_function */
|
| + &HookZeroInitAlloc, /* alloc_zero_initialized_function */
|
| + &HookllocAligned, /* alloc_aligned_function */
|
| + &HookRealloc, /* realloc_function */
|
| + &HookFree, /* free_function */
|
| + &HookGetSizeEstimate, /* get_size_estimate_function */
|
| + nullptr, /* next */
|
| };
|
| #endif // BUILDFLAG(USE_EXPERIMENTAL_ALLOCATOR_SHIM)
|
|
|
|
|