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

Side by Side Diff: base/allocator/allocator_shim_default_dispatch_to_linker_wrapped_symbols.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 <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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698