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

Side by Side Diff: base/allocator/allocator_shim_default_dispatch_to_winheap.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 "base/allocator/winheap_stubs_win.h" 7 #include "base/allocator/winheap_stubs_win.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace { 10 namespace {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 } // namespace 55 } // namespace
56 56
57 const AllocatorDispatch AllocatorDispatch::default_dispatch = { 57 const AllocatorDispatch AllocatorDispatch::default_dispatch = {
58 &DefaultWinHeapMallocImpl, 58 &DefaultWinHeapMallocImpl,
59 &DefaultWinHeapCallocImpl, 59 &DefaultWinHeapCallocImpl,
60 &DefaultWinHeapMemalignImpl, 60 &DefaultWinHeapMemalignImpl,
61 &DefaultWinHeapReallocImpl, 61 &DefaultWinHeapReallocImpl,
62 &DefaultWinHeapFreeImpl, 62 &DefaultWinHeapFreeImpl,
63 &DefaultWinHeapGetSizeEstimateImpl, 63 &DefaultWinHeapGetSizeEstimateImpl,
64 nullptr, /* batch_malloc_function */
65 nullptr, /* batch_free_function */
66 nullptr, /* free_definite_size_function */
64 nullptr, /* next */ 67 nullptr, /* next */
65 }; 68 };
OLDNEW
« no previous file with comments | « base/allocator/allocator_shim_default_dispatch_to_tcmalloc.cc ('k') | base/allocator/allocator_shim_override_mac_symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698