| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <malloc.h> | 5 #include <malloc.h> |
| 6 | 6 |
| 7 #include "base/allocator/allocator_shim.h" | 7 #include "base/allocator/allocator_shim.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(OS_ANDROID) && __ANDROID_API__ < 17 | 10 #if defined(OS_ANDROID) && __ANDROID_API__ < 17 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 } // namespace | 86 } // namespace |
| 87 | 87 |
| 88 const AllocatorDispatch AllocatorDispatch::default_dispatch = { | 88 const AllocatorDispatch AllocatorDispatch::default_dispatch = { |
| 89 &RealMalloc, /* alloc_function */ | 89 &RealMalloc, /* alloc_function */ |
| 90 &RealCalloc, /* alloc_zero_initialized_function */ | 90 &RealCalloc, /* alloc_zero_initialized_function */ |
| 91 &RealMemalign, /* alloc_aligned_function */ | 91 &RealMemalign, /* alloc_aligned_function */ |
| 92 &RealRealloc, /* realloc_function */ | 92 &RealRealloc, /* realloc_function */ |
| 93 &RealFree, /* free_function */ | 93 &RealFree, /* free_function */ |
| 94 &RealSizeEstimate, /* get_size_estimate_function */ | 94 &RealSizeEstimate, /* get_size_estimate_function */ |
| 95 nullptr, /* batch_malloc_function */ |
| 96 nullptr, /* batch_free_function */ |
| 97 nullptr, /* free_definite_size_function */ |
| 95 nullptr, /* next */ | 98 nullptr, /* next */ |
| 96 }; | 99 }; |
| OLD | NEW |