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

Unified Diff: base/allocator/allocator_shim.h

Issue 2572593002: [counting_allocator] Chrome changes.
Patch Set: Surface max_size; instrument flat_set. Created 3 years, 9 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/BUILD.gn ('k') | base/allocator/allocator_shim.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/allocator/allocator_shim.h
diff --git a/base/allocator/allocator_shim.h b/base/allocator/allocator_shim.h
index 65ac1eb7de6c3f0b366ddc3832c6abed58c1c46d..2556514012a56235b046a2d92a5d0ebabfe45121 100644
--- a/base/allocator/allocator_shim.h
+++ b/base/allocator/allocator_shim.h
@@ -84,6 +84,9 @@ struct AllocatorDispatch {
void* ptr,
size_t size,
void* context);
+ using TaggedAllocFn = void*(const AllocatorDispatch* self,
+ size_t size,
+ const char* tag);
AllocFn* const alloc_function;
AllocZeroInitializedFn* const alloc_zero_initialized_function;
@@ -94,6 +97,7 @@ struct AllocatorDispatch {
BatchMallocFn* const batch_malloc_function;
BatchFreeFn* const batch_free_function;
FreeDefiniteSizeFn* const free_definite_size_function;
+ TaggedAllocFn* const tagged_alloc_function;
const AllocatorDispatch* next;
« no previous file with comments | « base/BUILD.gn ('k') | base/allocator/allocator_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698