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

Unified Diff: build/config/allocator.gni

Issue 1678893002: allocator: add use_experimental_allocator_shim build flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 4 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
Index: build/config/allocator.gni
diff --git a/build/config/allocator.gni b/build/config/allocator.gni
index 5b6d963d41cfb455c03dc95d61a350af94e6a268..2c908fea6791603a79cdc4e75d2d93b9bee7a07f 100644
--- a/build/config/allocator.gni
+++ b/build/config/allocator.gni
@@ -14,8 +14,15 @@ if (is_android || current_cpu == "mipsel" || is_mac || is_ios || is_asan ||
declare_args() {
# Memory allocator to use. Set to "none" to use default allocator.
use_allocator = _default_allocator
+
+ # TODO(primiano): this should just become the default without having a flag,
+ # but we need to get there first. http://crbug.com/550886 .
+ # Causes all the allocations to be routed via allocator_shim.cc.
+ use_experimental_allocator_shim = false
}
assert(use_allocator == "none" || use_allocator == "tcmalloc")
assert(!is_win || use_allocator == "none", "Tcmalloc doesn't work on Windows.")
+assert(!use_experimental_allocator_shim || is_linux,
+ "use_experimental_allocator_shim supported only on Linux")

Powered by Google App Engine
This is Rietveld 408576698