OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef BASE_ALLOCATOR_ALLOCATOR_SHIM_DEFAULT_DISPATCH_TO_ZONED_MALLOC_H_ | 5 #ifndef BASE_ALLOCATOR_ALLOCATOR_SHIM_DEFAULT_DISPATCH_TO_ZONED_MALLOC_H_ |
6 #define BASE_ALLOCATOR_ALLOCATOR_SHIM_DEFAULT_DISPATCH_TO_ZONED_MALLOC_H_ | 6 #define BASE_ALLOCATOR_ALLOCATOR_SHIM_DEFAULT_DISPATCH_TO_ZONED_MALLOC_H_ |
7 | 7 |
8 #include "base/allocator/allocator_interception_mac.h" | |
9 | |
10 namespace base { | 8 namespace base { |
11 namespace allocator { | 9 namespace allocator { |
12 | 10 |
13 // This initializes AllocatorDispatch::default_dispatch by saving pointers to | 11 // This initializes AllocatorDispatch::default_dispatch by saving pointers to |
14 // the functions in the current default malloc zone. This must be called before | 12 // 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. | 13 // the default malloc zone is changed to have its intended effect. |
16 void InitializeDefaultDispatchToMacAllocator(); | 14 void InitializeDefaultDispatchToMacAllocator(); |
17 | 15 |
18 } // namespace allocator | 16 } // namespace allocator |
19 } // namespace base | 17 } // namespace base |
20 | 18 |
21 #endif // BASE_ALLOCATOR_ALLOCATOR_SHIM_DEFAULT_DISPATCH_TO_ZONED_MALLOC_H_ | 19 #endif // BASE_ALLOCATOR_ALLOCATOR_SHIM_DEFAULT_DISPATCH_TO_ZONED_MALLOC_H_ |
OLD | NEW |