Chromium Code Reviews| Index: base/allocator/allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc |
| diff --git a/base/allocator/allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc b/base/allocator/allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc |
| index 7955cb7877001e7c6a7a73ea4505f5aa24c24f6b..9e04f04f7e6d5ce9ea7e9bfe28cac9a0d6fb2559 100644 |
| --- a/base/allocator/allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc |
| +++ b/base/allocator/allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc |
| @@ -45,13 +45,20 @@ void RealFree(const AllocatorDispatch*, void* address) { |
| __real_free(address); |
| } |
| +size_t RealSizeEstimate(const AllocatorDispatch*, void*) { |
| + // TODO(primiano): This should be redirected to malloc_usable_size or |
| + // the like. |
|
Primiano Tucci (use gerrit)
2016/09/02 17:31:20
yup I can do this in a followup,it's quite straigh
Sigurður Ásgeirsson
2016/09/06 14:58:53
Thanks.
|
| + return 0; |
| +} |
| + |
| } // namespace |
| const AllocatorDispatch AllocatorDispatch::default_dispatch = { |
| - &RealMalloc, /* alloc_function */ |
| - &RealCalloc, /* alloc_zero_initialized_function */ |
| - &RealMemalign, /* alloc_aligned_function */ |
| - &RealRealloc, /* realloc_function */ |
| - &RealFree, /* free_function */ |
| - nullptr, /* next */ |
| + &RealMalloc, /* alloc_function */ |
| + &RealCalloc, /* alloc_zero_initialized_function */ |
| + &RealMemalign, /* alloc_aligned_function */ |
| + &RealRealloc, /* realloc_function */ |
| + &RealFree, /* free_function */ |
| + &RealSizeEstimate, /* get_size_estimate_function */ |
| + nullptr, /* next */ |
| }; |