aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/tcmalloc
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
committeralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
commit056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11 (patch)
tree4740980126f32e3af7937ba0ca5f83e59baa4ab0 /contrib/libs/tcmalloc
parent269126dcced1cc8b53eb4398b4a33e5142f10290 (diff)
downloadydb-056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11.tar.gz
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'contrib/libs/tcmalloc')
-rw-r--r--contrib/libs/tcmalloc/default/ya.make16
-rw-r--r--contrib/libs/tcmalloc/dynamic/ya.make1
-rw-r--r--contrib/libs/tcmalloc/malloc_extension/ya.make32
-rw-r--r--contrib/libs/tcmalloc/no_percpu_cache/ya.make23
-rw-r--r--contrib/libs/tcmalloc/numa_256k/ya.make22
-rw-r--r--contrib/libs/tcmalloc/numa_large_pages/ya.make22
-rw-r--r--contrib/libs/tcmalloc/small_but_slow/ya.make15
-rw-r--r--contrib/libs/tcmalloc/ya.make33
8 files changed, 164 insertions, 0 deletions
diff --git a/contrib/libs/tcmalloc/default/ya.make b/contrib/libs/tcmalloc/default/ya.make
new file mode 100644
index 0000000000..cc2de66762
--- /dev/null
+++ b/contrib/libs/tcmalloc/default/ya.make
@@ -0,0 +1,16 @@
+LIBRARY()
+
+WITHOUT_LICENSE_TEXTS()
+
+LICENSE(Apache-2.0)
+
+SRCDIR(contrib/libs/tcmalloc)
+
+INCLUDE(../common.inc)
+
+GLOBAL_SRCS(
+ # Options
+ tcmalloc/want_hpaa_subrelease.cc
+)
+
+END()
diff --git a/contrib/libs/tcmalloc/dynamic/ya.make b/contrib/libs/tcmalloc/dynamic/ya.make
new file mode 100644
index 0000000000..9c008b201e
--- /dev/null
+++ b/contrib/libs/tcmalloc/dynamic/ya.make
@@ -0,0 +1 @@
+DLL_FOR(contrib/libs/tcmalloc tcmalloc)
diff --git a/contrib/libs/tcmalloc/malloc_extension/ya.make b/contrib/libs/tcmalloc/malloc_extension/ya.make
new file mode 100644
index 0000000000..a2044f60c2
--- /dev/null
+++ b/contrib/libs/tcmalloc/malloc_extension/ya.make
@@ -0,0 +1,32 @@
+LIBRARY()
+
+WITHOUT_LICENSE_TEXTS()
+
+LICENSE(Apache-2.0)
+
+NO_UTIL()
+
+NO_COMPILER_WARNINGS()
+
+# https://github.com/google/tcmalloc
+VERSION(2020-11-23-a643d89610317be1eff9f7298104eef4c987d8d5)
+
+SRCDIR(contrib/libs/tcmalloc)
+
+SRCS(
+ tcmalloc/malloc_extension.cc
+)
+
+PEERDIR(
+ contrib/restricted/abseil-cpp
+)
+
+ADDINCL(
+ GLOBAL contrib/libs/tcmalloc
+)
+
+CFLAGS(
+ -DTCMALLOC_256K_PAGES
+)
+
+END()
diff --git a/contrib/libs/tcmalloc/no_percpu_cache/ya.make b/contrib/libs/tcmalloc/no_percpu_cache/ya.make
new file mode 100644
index 0000000000..37e9f7d24f
--- /dev/null
+++ b/contrib/libs/tcmalloc/no_percpu_cache/ya.make
@@ -0,0 +1,23 @@
+LIBRARY()
+
+WITHOUT_LICENSE_TEXTS()
+
+LICENSE(Apache-2.0)
+
+SRCDIR(contrib/libs/tcmalloc)
+
+GLOBAL_SRCS(
+ # Options
+ tcmalloc/want_hpaa.cc
+)
+
+INCLUDE(../common.inc)
+
+SRCS(aligned_alloc.c)
+
+CFLAGS(
+ -DTCMALLOC_256K_PAGES
+ -DTCMALLOC_DEPRECATED_PERTHREAD
+)
+
+END()
diff --git a/contrib/libs/tcmalloc/numa_256k/ya.make b/contrib/libs/tcmalloc/numa_256k/ya.make
new file mode 100644
index 0000000000..8497ac5f9e
--- /dev/null
+++ b/contrib/libs/tcmalloc/numa_256k/ya.make
@@ -0,0 +1,22 @@
+LIBRARY()
+
+WITHOUT_LICENSE_TEXTS()
+
+LICENSE(Apache-2.0)
+
+SRCDIR(contrib/libs/tcmalloc)
+
+INCLUDE(../common.inc)
+
+GLOBAL_SRCS(
+ # Options
+ tcmalloc/want_hpaa_subrelease.cc
+ tcmalloc/want_numa_aware.cc
+)
+
+CFLAGS(
+ -DTCMALLOC_256K_PAGES
+ -DTCMALLOC_NUMA_AWARE
+)
+
+END()
diff --git a/contrib/libs/tcmalloc/numa_large_pages/ya.make b/contrib/libs/tcmalloc/numa_large_pages/ya.make
new file mode 100644
index 0000000000..1139b3be2a
--- /dev/null
+++ b/contrib/libs/tcmalloc/numa_large_pages/ya.make
@@ -0,0 +1,22 @@
+LIBRARY()
+
+WITHOUT_LICENSE_TEXTS()
+
+LICENSE(Apache-2.0)
+
+SRCDIR(contrib/libs/tcmalloc)
+
+INCLUDE(../common.inc)
+
+GLOBAL_SRCS(
+ # Options
+ tcmalloc/want_hpaa_subrelease.cc
+ tcmalloc/want_numa_aware.cc
+)
+
+CFLAGS(
+ -DTCMALLOC_LARGE_PAGES
+ -DTCMALLOC_NUMA_AWARE
+)
+
+END()
diff --git a/contrib/libs/tcmalloc/small_but_slow/ya.make b/contrib/libs/tcmalloc/small_but_slow/ya.make
new file mode 100644
index 0000000000..b523ee0a57
--- /dev/null
+++ b/contrib/libs/tcmalloc/small_but_slow/ya.make
@@ -0,0 +1,15 @@
+LIBRARY()
+
+WITHOUT_LICENSE_TEXTS()
+
+LICENSE(Apache-2.0)
+
+SRCDIR(contrib/libs/tcmalloc)
+
+INCLUDE(../common.inc)
+
+CFLAGS(
+ -DTCMALLOC_SMALL_BUT_SLOW
+)
+
+END()
diff --git a/contrib/libs/tcmalloc/ya.make b/contrib/libs/tcmalloc/ya.make
new file mode 100644
index 0000000000..dabe65137d
--- /dev/null
+++ b/contrib/libs/tcmalloc/ya.make
@@ -0,0 +1,33 @@
+LIBRARY()
+
+LICENSE(Apache-2.0)
+
+LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
+
+# https://github.com/google/tcmalloc
+VERSION(2021-10-04-45c59ccbc062ac96d83710205033c656e490d376)
+
+SRCS(
+ # Options
+ tcmalloc/want_hpaa.cc
+)
+
+INCLUDE(common.inc)
+
+CFLAGS(
+ -DTCMALLOC_256K_PAGES
+)
+
+END()
+
+IF (NOT DLL_FOR)
+ RECURSE(
+ default
+ dynamic
+ malloc_extension
+ no_percpu_cache
+ numa_256k
+ numa_large_pages
+ small_but_slow
+ )
+ENDIF()