aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/malloc
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 /library/cpp/malloc
parent269126dcced1cc8b53eb4398b4a33e5142f10290 (diff)
downloadydb-056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11.tar.gz
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'library/cpp/malloc')
-rw-r--r--library/cpp/malloc/api/helpers/ya.make11
-rw-r--r--library/cpp/malloc/api/ut/ya.make11
-rw-r--r--library/cpp/malloc/api/ya.make14
-rw-r--r--library/cpp/malloc/jemalloc/ya.make19
-rw-r--r--library/cpp/malloc/mimalloc/link_test/ya.make9
-rw-r--r--library/cpp/malloc/mimalloc/ya.make18
-rw-r--r--library/cpp/malloc/system/ya.make13
-rw-r--r--library/cpp/malloc/tcmalloc/ya.make13
8 files changed, 108 insertions, 0 deletions
diff --git a/library/cpp/malloc/api/helpers/ya.make b/library/cpp/malloc/api/helpers/ya.make
new file mode 100644
index 0000000000..b09146f2fe
--- /dev/null
+++ b/library/cpp/malloc/api/helpers/ya.make
@@ -0,0 +1,11 @@
+LIBRARY()
+
+PEERDIR(
+ library/cpp/malloc/api
+)
+
+SRCS(
+ io.cpp
+)
+
+END()
diff --git a/library/cpp/malloc/api/ut/ya.make b/library/cpp/malloc/api/ut/ya.make
new file mode 100644
index 0000000000..5580da99d7
--- /dev/null
+++ b/library/cpp/malloc/api/ut/ya.make
@@ -0,0 +1,11 @@
+UNITTEST()
+
+PEERDIR(
+ library/cpp/malloc/api/helpers
+)
+
+SRCS(
+ ut.cpp
+)
+
+END()
diff --git a/library/cpp/malloc/api/ya.make b/library/cpp/malloc/api/ya.make
new file mode 100644
index 0000000000..499792ba19
--- /dev/null
+++ b/library/cpp/malloc/api/ya.make
@@ -0,0 +1,14 @@
+LIBRARY()
+
+NO_UTIL()
+
+SRCS(
+ malloc.cpp
+)
+
+END()
+
+RECURSE(
+ helpers
+ ut
+)
diff --git a/library/cpp/malloc/jemalloc/ya.make b/library/cpp/malloc/jemalloc/ya.make
new file mode 100644
index 0000000000..335ae2c0b2
--- /dev/null
+++ b/library/cpp/malloc/jemalloc/ya.make
@@ -0,0 +1,19 @@
+LIBRARY()
+
+NO_UTIL()
+
+IF (OS_ANDROID)
+ PEERDIR(
+ library/cpp/malloc/system
+ )
+ELSE()
+ PEERDIR(
+ library/cpp/malloc/api
+ contrib/libs/jemalloc
+ )
+ SRCS(
+ malloc-info.cpp
+ )
+ENDIF()
+
+END()
diff --git a/library/cpp/malloc/mimalloc/link_test/ya.make b/library/cpp/malloc/mimalloc/link_test/ya.make
new file mode 100644
index 0000000000..1488b55072
--- /dev/null
+++ b/library/cpp/malloc/mimalloc/link_test/ya.make
@@ -0,0 +1,9 @@
+PROGRAM()
+
+ALLOCATOR(MIM)
+
+SRCS(
+ main.cpp
+)
+
+END()
diff --git a/library/cpp/malloc/mimalloc/ya.make b/library/cpp/malloc/mimalloc/ya.make
new file mode 100644
index 0000000000..87b3a6420a
--- /dev/null
+++ b/library/cpp/malloc/mimalloc/ya.make
@@ -0,0 +1,18 @@
+LIBRARY()
+
+NO_UTIL()
+
+PEERDIR(
+ library/cpp/malloc/api
+ contrib/libs/mimalloc
+)
+
+SRCS(
+ info.cpp
+)
+
+END()
+
+RECURSE(
+ link_test
+)
diff --git a/library/cpp/malloc/system/ya.make b/library/cpp/malloc/system/ya.make
new file mode 100644
index 0000000000..23d341f65f
--- /dev/null
+++ b/library/cpp/malloc/system/ya.make
@@ -0,0 +1,13 @@
+LIBRARY()
+
+NO_UTIL()
+
+PEERDIR(
+ library/cpp/malloc/api
+)
+
+SRCS(
+ malloc-info.cpp
+)
+
+END()
diff --git a/library/cpp/malloc/tcmalloc/ya.make b/library/cpp/malloc/tcmalloc/ya.make
new file mode 100644
index 0000000000..43650c8fce
--- /dev/null
+++ b/library/cpp/malloc/tcmalloc/ya.make
@@ -0,0 +1,13 @@
+LIBRARY()
+
+NO_UTIL()
+
+PEERDIR(
+ library/cpp/malloc/api
+ contrib/libs/tcmalloc/malloc_extension
+)
+SRCS(
+ malloc-info.cpp
+)
+
+END()