Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: base/allocator/allocator_shim_default_dispatch_to_glibc.cc

Issue 2658723007: Hook up allocator shim on mac. (Closed)
Patch Set: remove a debugging test. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « base/allocator/allocator_shim.cc ('k') | base/allocator/allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698