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

Unified Diff: base/allocator/allocator_shim_default_dispatch_to_zoned_malloc.h

Issue 2658723007: Hook up allocator shim on mac. (Closed)
Patch Set: Rebase. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: base/allocator/allocator_shim_default_dispatch_to_zoned_malloc.h
diff --git a/base/allocator/allocator_shim_default_dispatch_to_zoned_malloc.h b/base/allocator/allocator_shim_default_dispatch_to_zoned_malloc.h
new file mode 100644
index 0000000000000000000000000000000000000000..de5e20cbb8ff8365bbfbadbc516a48a8414ca5b4
--- /dev/null
+++ b/base/allocator/allocator_shim_default_dispatch_to_zoned_malloc.h
@@ -0,0 +1,20 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_ALLOCATOR_ALLOCATOR_SHIM_DEFAULT_DISPATCH_TO_ZONED_MALLOC_H_
+#define BASE_ALLOCATOR_ALLOCATOR_SHIM_DEFAULT_DISPATCH_TO_ZONED_MALLOC_H_
+
+#include "base/allocator/allocator_interception_mac.h"
+
+namespace base {
+namespace allocator {
+
+// On macOS, AllocatorDispatch::default_dispatch needs to be informed about the
+// unintercepted malloc zone functions.
+void SetDefaultDispatchMallocZoneFunctions(MallocZoneFunctions* functions);
+
+} // namespace allocator
+} // namespace base
+
+#endif // BASE_ALLOCATOR_ALLOCATOR_SHIM_DEFAULT_DISPATCH_TO_ZONED_MALLOC_H_

Powered by Google App Engine
This is Rietveld 408576698