aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-03-13 13:58:24 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-03-13 14:11:53 +0300
commit11a895b7e15d1c5a1f52706396b82e3f9db953cb (patch)
treefabc6d883b0f946151f61ae7865cee9f529a1fdd /library
parent9685917341315774aad5733b1793b1e533a88bbb (diff)
downloadydb-11a895b7e15d1c5a1f52706396b82e3f9db953cb.tar.gz
Export clang-format16 via ydblib project
6e6be3a95868fde888d801b7590af4044049563f
Diffstat (limited to 'library')
-rw-r--r--library/cpp/tcmalloc/fix.cpp13
-rw-r--r--library/cpp/tcmalloc/ya.make10
2 files changed, 23 insertions, 0 deletions
diff --git a/library/cpp/tcmalloc/fix.cpp b/library/cpp/tcmalloc/fix.cpp
new file mode 100644
index 0000000000..3229ac7440
--- /dev/null
+++ b/library/cpp/tcmalloc/fix.cpp
@@ -0,0 +1,13 @@
+#include <absl/debugging/stacktrace.h>
+
+namespace {
+ static struct TInitUnwinder {
+ TInitUnwinder() {
+ absl::SetStackUnwinder(DummyUnwinder);
+ }
+
+ static int DummyUnwinder(void**, int*, int, int, const void*, int*) {
+ return 0;
+ }
+ } init;
+}
diff --git a/library/cpp/tcmalloc/ya.make b/library/cpp/tcmalloc/ya.make
new file mode 100644
index 0000000000..3e66c28aa7
--- /dev/null
+++ b/library/cpp/tcmalloc/ya.make
@@ -0,0 +1,10 @@
+LIBRARY()
+
+IF (OS_LINUX)
+ PEERDIR(
+ contrib/restricted/abseil-cpp/absl/debugging
+ )
+ SRCS(GLOBAL fix.cpp)
+ENDIF()
+
+END()