aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted
diff options
context:
space:
mode:
authornechda <nechda@yandex-team.com>2024-09-19 20:44:54 +0300
committernechda <nechda@yandex-team.com>2024-09-19 20:57:48 +0300
commit7f1172f2cc68ca4d05a0c35ee9f601d41d4a026e (patch)
tree237130e3940345cba68e04d5bae8b3339e3e5928 /contrib/restricted
parentf4a740ff0d5b53d8a44150c09e019eaa6d331821 (diff)
downloadydb-7f1172f2cc68ca4d05a0c35ee9f601d41d4a026e.tar.gz
Fix reimports
commit_hash:b4b0ee880890478723bec5ff7a5083ba1db1d1f7
Diffstat (limited to 'contrib/restricted')
-rw-r--r--contrib/restricted/abseil-cpp-tstring/y_absl/debugging/ya.make30
-rw-r--r--contrib/restricted/abseil-cpp-tstring/y_absl/log/ya.make6
-rw-r--r--contrib/restricted/abseil-cpp-tstring/y_absl/strings/ya.make10
-rw-r--r--contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/mutex.cc23
-rw-r--r--contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/ya.make10
5 files changed, 48 insertions, 31 deletions
diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/ya.make b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/ya.make
index b4b0267449..b8fee8b070 100644
--- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/ya.make
+++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/ya.make
@@ -19,21 +19,21 @@ ADDINCL(
NO_COMPILER_WARNINGS()
-IF(NOT Y_ABSL_DONT_USE_DEBUG)
-SRCS(
- failure_signal_handler.cc
- internal/address_is_readable.cc
- internal/decode_rust_punycode.cc
- internal/demangle.cc
- internal/demangle_rust.cc
- internal/elf_mem_image.cc
- internal/examine_stack.cc
- internal/utf8_for_code_point.cc
- internal/vdso_support.cc
- leak_check.cc
- stacktrace.cc
- symbolize.cc
-)
+IF (NOT Y_ABSL_DONT_USE_DEBUG)
+ SRCS(
+ failure_signal_handler.cc
+ internal/address_is_readable.cc
+ internal/decode_rust_punycode.cc
+ internal/demangle.cc
+ internal/demangle_rust.cc
+ internal/elf_mem_image.cc
+ internal/examine_stack.cc
+ internal/utf8_for_code_point.cc
+ internal/vdso_support.cc
+ leak_check.cc
+ stacktrace.cc
+ symbolize.cc
+ )
ENDIF()
END()
diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/log/ya.make b/contrib/restricted/abseil-cpp-tstring/y_absl/log/ya.make
index 74000ae8ee..746cf7a0cd 100644
--- a/contrib/restricted/abseil-cpp-tstring/y_absl/log/ya.make
+++ b/contrib/restricted/abseil-cpp-tstring/y_absl/log/ya.make
@@ -32,8 +32,10 @@ ENDIF()
NO_COMPILER_WARNINGS()
-IF(Y_ABSL_DONT_USE_DEBUG)
- CFLAGS(-DY_ABSL_DONT_USE_DEBUG_LIBRARY=1)
+IF (Y_ABSL_DONT_USE_DEBUG)
+ CFLAGS(
+ -DY_ABSL_DONT_USE_DEBUG_LIBRARY=1
+ )
ENDIF()
SRCS(
diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/strings/ya.make b/contrib/restricted/abseil-cpp-tstring/y_absl/strings/ya.make
index 74d25c05f5..a2d57d8f20 100644
--- a/contrib/restricted/abseil-cpp-tstring/y_absl/strings/ya.make
+++ b/contrib/restricted/abseil-cpp-tstring/y_absl/strings/ya.make
@@ -19,12 +19,14 @@ ADDINCL(
NO_COMPILER_WARNINGS()
-SRCDIR(contrib/restricted/abseil-cpp-tstring/y_absl)
-
-IF(Y_ABSL_DONT_USE_DEBUG)
- CFLAGS(-DY_ABSL_DONT_USE_DEBUG_LIBRARY=1)
+IF (Y_ABSL_DONT_USE_DEBUG)
+ CFLAGS(
+ -DY_ABSL_DONT_USE_DEBUG_LIBRARY=1
+ )
ENDIF()
+SRCDIR(contrib/restricted/abseil-cpp-tstring/y_absl)
+
SRCS(
crc/crc32c.cc
crc/internal/cpu_detect.cc
diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/mutex.cc b/contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/mutex.cc
index 8fb7c97e39..ac0cd05141 100644
--- a/contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/mutex.cc
+++ b/contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/mutex.cc
@@ -434,14 +434,10 @@ static SynchEvent* GetSynchEvent(const void* addr) {
// if event recording is on
static void PostSynchEvent(void* obj, int ev) {
SynchEvent* e = GetSynchEvent(obj);
-#ifdef Y_ABSL_DONT_USE_DEBUG_LIBRARY
- constexpr bool DONT_COLLECT_STACK_TRACE = 1;
-#else
- constexpr bool DONT_COLLECT_STACK_TRACE = 0;
-#endif
+#ifndef Y_ABSL_DONT_USE_DEBUG_LIBRARY
// logging is on if event recording is on and either there's no event struct,
// or it explicitly says to log
- if ((e == nullptr || e->log) && !DONT_COLLECT_STACK_TRACE) {
+ if (e == nullptr || e->log) {
void* pcs[40];
int n = y_absl::GetStackTrace(pcs, Y_ABSL_ARRAYSIZE(pcs), 1);
// A buffer with enough space for the ASCII for all the PCs, even on a
@@ -460,6 +456,7 @@ static void PostSynchEvent(void* obj, int ev) {
Y_ABSL_RAW_LOG(INFO, "%s%p %s %s", event_properties[ev].msg, obj,
(e == nullptr ? "" : e->name), buffer);
}
+#endif
const int flags = event_properties[ev].flags;
if ((flags & SYNCH_F_LCK) != 0 && e != nullptr && e->invariant != nullptr) {
// Calling the invariant as is causes problems under ThreadSanitizer.
@@ -1325,6 +1322,7 @@ static inline void DebugOnlyLockLeave(Mutex* mu) {
static char* StackString(void** pcs, int n, char* buf, int maxlen,
bool symbolize) {
+#ifndef Y_ABSL_DONT_USE_DEBUG_LIBRARY
static constexpr int kSymLen = 200;
char sym[kSymLen];
int len = 0;
@@ -1344,12 +1342,21 @@ static char* StackString(void** pcs, int n, char* buf, int maxlen,
len += strlen(&buf[len]);
}
return buf;
+#else
+ buf[0] = 0;
+ return buf;
+#endif
}
static char* CurrentStackString(char* buf, int maxlen, bool symbolize) {
+#ifndef Y_ABSL_DONT_USE_DEBUG_LIBRARY
void* pcs[40];
return StackString(pcs, y_absl::GetStackTrace(pcs, Y_ABSL_ARRAYSIZE(pcs), 2), buf,
maxlen, symbolize);
+#else
+ buf[0] = 0;
+ return buf;
+#endif
}
namespace {
@@ -1375,7 +1382,11 @@ struct ScopedDeadlockReportBuffers {
// Helper to pass to GraphCycles::UpdateStackTrace.
int GetStack(void** stack, int max_depth) {
+#ifndef Y_ABSL_DONT_USE_DEBUG_LIBRARY
return y_absl::GetStackTrace(stack, max_depth, 3);
+#else
+ return 0;
+#endif
}
} // anonymous namespace
diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/ya.make b/contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/ya.make
index a4eee05708..82ecd4b5ff 100644
--- a/contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/ya.make
+++ b/contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/ya.make
@@ -20,12 +20,14 @@ ADDINCL(
GLOBAL contrib/restricted/abseil-cpp-tstring
)
-IF(Y_ABSL_DONT_USE_DEBUG)
- CFLAGS(-DY_ABSL_DONT_USE_DEBUG_LIBRARY=1)
-ENDIF()
-
NO_COMPILER_WARNINGS()
+IF (Y_ABSL_DONT_USE_DEBUG)
+ CFLAGS(
+ -DY_ABSL_DONT_USE_DEBUG_LIBRARY=1
+ )
+ENDIF()
+
SRCS(
barrier.cc
blocking_counter.cc