OLD | NEW |
(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_ |
OLD | NEW |