diff options
author | Alexander Smirnov <alex@ydb.tech> | 2024-03-13 15:37:23 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-03-13 15:37:23 +0000 |
commit | aacf41b393e2f99d9e9c55af6e5d3fe42541b466 (patch) | |
tree | 4dc683cbae5233be52ec34454586d7377f01ca2a /library/cpp | |
parent | 6cb1176da7acfe6571977f06e7d9dc4365cb330b (diff) | |
parent | 6af8117782e4b1b97660363d80b1031a69e53d2e (diff) | |
download | ydb-aacf41b393e2f99d9e9c55af6e5d3fe42541b466.tar.gz |
Merge branch 'rightlib' into mergelibs-240313-1536
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/tcmalloc/fix.cpp | 13 | ||||
-rw-r--r-- | library/cpp/tcmalloc/ya.make | 10 |
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 00000000000..3229ac74402 --- /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 00000000000..3e66c28aa72 --- /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() |