Skip to content

Commit

Permalink
Turn off allocator by default
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed May 4, 2020
1 parent 0f3a572 commit 4a24d0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/config/allocator.gni
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ if ((is_linux || is_android || is_mac ||

declare_args() {
# Memory allocator to use. Set to "none" to use default allocator.
use_allocator = _default_allocator
# Yue: Turn off allocator by default.
use_allocator = "none"

# Causes all the allocations to be routed via allocator_shim.cc.
use_allocator_shim = _default_use_allocator_shim
# Yue: Turn off allocator by default.
use_allocator_shim = false

# Partition alloc is included by default except iOS.
use_partition_alloc = !is_ios
Expand Down
1 change: 1 addition & 0 deletions scripts/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ if (targetOs == 'linux') {
debugConfig.push('enable_iterator_debugging=false')
// Use prebuilt clang binaries.
commonConfig.push('is_clang=true')
commonConfig.push('use_allocator="tcmalloc"')
// Link with libc++ statically.
commonConfig.push('use_custom_libcxx=true')
releaseConfig.push('libcpp_is_static=true')
Expand Down

0 comments on commit 4a24d0b

Please sign in to comment.