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

Unified Diff: base/allocator/allocator_shim_override_cpp_symbols.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/allocator/allocator_shim.cc ('k') | base/containers/flat_set.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/allocator/allocator_shim_override_cpp_symbols.h
diff --git a/base/allocator/allocator_shim_override_cpp_symbols.h b/base/allocator/allocator_shim_override_cpp_symbols.h
index 3313687250f4325111e8652cd6360284ab71b93f..b56f93d71632c23cf623837fc28c32598e418fd7 100644
--- a/base/allocator/allocator_shim_override_cpp_symbols.h
+++ b/base/allocator/allocator_shim_override_cpp_symbols.h
@@ -19,6 +19,12 @@ SHIM_ALWAYS_EXPORT void* operator new(size_t size) {
return ShimCppNew(size);
}
+#if defined(_LIBCPP_COUNTING_ALLOCATOR)
+SHIM_ALWAYS_EXPORT void* operator new(size_t size, std::new_tag tag) {
+ return ShimTaggedCppNew(size, tag);
+}
+#endif
+
SHIM_ALWAYS_EXPORT void operator delete(void* p) __THROW {
ShimCppDelete(p);
}
« no previous file with comments | « base/allocator/allocator_shim.cc ('k') | base/containers/flat_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698