aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqkrorlqr <qkrorlqr@yandex-team.ru>2022-04-27 12:54:55 +0300
committerqkrorlqr <qkrorlqr@yandex-team.ru>2022-04-27 12:54:55 +0300
commitf009c24941eb33fbdbb26c5b11ca58d58bf41cda (patch)
treebbfb311576c8abf8f1ab3d0b7831d85c5771dc5c
parentf3628165c65d7e454e921a6ab119f66b45bb926c (diff)
downloadydb-f009c24941eb33fbdbb26c5b11ca58d58bf41cda.tar.gz
tcmalloc version without percpu cache; NBS-3208
ref:d7ac47e1696314402d3d0db0ed5ba1229a0d1d3b
-rw-r--r--build/ymake.core.conf8
1 files changed, 6 insertions, 2 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index 0aecd0ed781..43c2104dc3f 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -1487,7 +1487,7 @@ when ($COMMON_LINK_SETTINGS == "yes") {
}
when (($MUSL != "yes" && $WITH_VALGRIND == "yes") || $SANITIZER_DEFINED == "yes") {
- when ($ALLOCATOR in [ "TCMALLOC", "TCMALLOC_SMALL_BUT_SLOW", "TCMALLOC_NUMA_256K", "TCMALLOC_NUMA_LARGE_PAGES", "TCMALLOC_256K", "GOOGLE", "J", "LF", "LF_YT", "LF_DBG", "B", "BM", "C", "LOCKLESS", "YT", "MIM", "HU" ]) {
+ when ($ALLOCATOR in [ "TCMALLOC", "TCMALLOC_SMALL_BUT_SLOW", "TCMALLOC_NUMA_256K", "TCMALLOC_NUMA_LARGE_PAGES", "TCMALLOC_256K", "TCMALLOC_TC", "GOOGLE", "J", "LF", "LF_YT", "LF_DBG", "B", "BM", "C", "LOCKLESS", "YT", "MIM", "HU" ]) {
PEERDIR+=library/cpp/malloc/system
}
}
@@ -1519,6 +1519,10 @@ when ($COMMON_LINK_SETTINGS == "yes") {
PEERDIR+=library/cpp/malloc/tcmalloc
PEERDIR+=contrib/libs/tcmalloc/default
}
+ "TCMALLOC_TC" ? {
+ PEERDIR+=library/cpp/malloc/tcmalloc
+ PEERDIR+=contrib/libs/tcmalloc/no_percpu_cache
+ }
"GOOGLE" ? {
PEERDIR+=library/cpp/malloc/galloc
}
@@ -5210,7 +5214,7 @@ macro ADD_PERL_MODULE(Dir, Module) {
macro ALLOCATOR(Alloc) {
SET(ALLOCATOR $Alloc)
- when ($ALLOCATOR in [ "LF", "LF_YT", "LF_DBG", "YT", "J", "B", "BM", "C", "TCMALLOC", "TCMALLOC_SMALL_BUT_SLOW", "TCMALLOC_NUMA_256K", "TCMALLOC_NUMA_LARGE_PAGES", "TCMALLOC_256K", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE", "MIM", "HU" ]) {
+ when ($ALLOCATOR in [ "LF", "LF_YT", "LF_DBG", "YT", "J", "B", "BM", "C", "TCMALLOC", "TCMALLOC_SMALL_BUT_SLOW", "TCMALLOC_NUMA_256K", "TCMALLOC_NUMA_LARGE_PAGES", "TCMALLOC_256K", "TCMALLOC_TC", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE", "MIM", "HU" ]) {
}
otherwise {
PEERDIR+=___configure_error___unknown_allocator_type___$ALLOCATOR