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

Side by Side Diff: base/allocator/allocator_shim_default_dispatch_to_mac_zoned_malloc.h

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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BASE_ALLOCATOR_ALLOCATOR_SHIM_DEFAULT_DISPATCH_TO_ZONED_MALLOC_H_
6 #define BASE_ALLOCATOR_ALLOCATOR_SHIM_DEFAULT_DISPATCH_TO_ZONED_MALLOC_H_
7
8 #include "base/allocator/allocator_interception_mac.h"
9
10 namespace base {
11 namespace allocator {
12
13 // This initializes AllocatorDispatch::default_dispatch by saving pointers to
14 // the functions in the current default malloc zone. This must be called before
15 // the default malloc zone is changed to have its intended effect.
16 void InitializeDefaultDispatchToMacAllocator();
17
18 } // namespace allocator
19 } // namespace base
20
21 #endif // BASE_ALLOCATOR_ALLOCATOR_SHIM_DEFAULT_DISPATCH_TO_ZONED_MALLOC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698