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

Unified Diff: base/allocator/allocator_interception_mac.h

Issue 2712363002: Use mach_override to intercept all newly registered malloc zones.
Patch Set: compile error. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/DEPS ('k') | base/allocator/allocator_interception_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/allocator/allocator_interception_mac.h
diff --git a/base/allocator/allocator_interception_mac.h b/base/allocator/allocator_interception_mac.h
index 8867f3823180a9f890c3fb7190ea084a0c128b04..00e47a26a44791e87045d7a15adeb99257bb93fa 100644
--- a/base/allocator/allocator_interception_mac.h
+++ b/base/allocator/allocator_interception_mac.h
@@ -36,8 +36,13 @@ bool UncheckedCallocMac(size_t num_items, size_t size, void** result);
// performs that interception.
BASE_EXPORT void InterceptAllocationsMac();
+// Intercepts all future malloc zone registrations.
+BASE_EXPORT void InterceptNewlyRegisteredMallocZones(
+ const MallocZoneFunctions* functions);
+
// Updates all malloc zones to use their original functions.
-// Also calls ClearAllMallocZonesForTesting.
+// Also calls ClearAllMallocZonesForTesting and
+// StopMallocZoneRegistrationInterceptionForTesting.
BASE_EXPORT void UninterceptMallocZonesForTesting();
} // namespace allocator
« no previous file with comments | « base/DEPS ('k') | base/allocator/allocator_interception_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698