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 "base/allocator/allocator_shim.h" | 5 #include "base/allocator/allocator_shim.h" |
6 | 6 |
7 #include <malloc.h> | 7 #include <malloc.h> |
8 | 8 |
9 // This translation unit defines a default dispatch for the allocator shim which | 9 // This translation unit defines a default dispatch for the allocator shim which |
10 // routes allocations to libc functions. | 10 // routes allocations to libc functions. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 } // namespace | 51 } // namespace |
52 | 52 |
53 const AllocatorDispatch AllocatorDispatch::default_dispatch = { | 53 const AllocatorDispatch AllocatorDispatch::default_dispatch = { |
54 &GlibcMalloc, /* alloc_function */ | 54 &GlibcMalloc, /* alloc_function */ |
55 &GlibcCalloc, /* alloc_zero_initialized_function */ | 55 &GlibcCalloc, /* alloc_zero_initialized_function */ |
56 &GlibcMemalign, /* alloc_aligned_function */ | 56 &GlibcMemalign, /* alloc_aligned_function */ |
57 &GlibcRealloc, /* realloc_function */ | 57 &GlibcRealloc, /* realloc_function */ |
58 &GlibcFree, /* free_function */ | 58 &GlibcFree, /* free_function */ |
59 &GlibcGetSizeEstimate, /* get_size_estimate_function */ | 59 &GlibcGetSizeEstimate, /* get_size_estimate_function */ |
| 60 nullptr, /* batch_malloc_function */ |
| 61 nullptr, /* batch_free_function */ |
| 62 nullptr, /* free_definite_size_function */ |
60 nullptr, /* next */ | 63 nullptr, /* next */ |
61 }; | 64 }; |
OLD | NEW |