diff options
author | nechda <nechda@yandex-team.com> | 2024-08-29 23:50:27 +0300 |
---|---|---|
committer | nechda <nechda@yandex-team.com> | 2024-08-30 00:05:25 +0300 |
commit | e10d6638f07a82edae3ea8197b9f5c0affcc07ea (patch) | |
tree | 571c38cec05813766a1ad290c9d51ce7ace52919 /contrib/restricted/abseil-cpp-tstring/y_absl/synchronization | |
parent | e79b38f2bbbf78d295d1901d2a79f898022d5224 (diff) | |
download | ydb-e10d6638f07a82edae3ea8197b9f5c0affcc07ea.tar.gz |
Update cpp-protobuf to 22.5
Привет!\
Этот PR переключат cpp & python библиотеки protobuf на версию 22.5
Если у вас возникли проблемы после влития этого PR:
1. Если начали падать канон тесты, то проведите их переканонизацию
2. Прочитайте <https://wiki.yandex-team.ru/users/nechda/obnovlenie-cpp-protobuf-22.5/> страничку с основными изменениями
3. Если страничка в вики не помогла, то пишите в [DEVTOOLSSUPPORT](https://st.yandex-team.ru/DEVTOOLSSUPPORT)
7fecade616c20a841b9e9af7b7998bdfc8d2807d
Diffstat (limited to 'contrib/restricted/abseil-cpp-tstring/y_absl/synchronization')
-rw-r--r-- | contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/mutex.cc | 7 | ||||
-rw-r--r-- | contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/ya.make | 4 |
2 files changed, 10 insertions, 1 deletions
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 9cccfab498..8fb7c97e39 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/mutex.cc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/mutex.cc @@ -434,9 +434,14 @@ 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 // 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) { + if ((e == nullptr || e->log) && !DONT_COLLECT_STACK_TRACE) { 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 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 6957a5d181..a4eee05708 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/ya.make +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/ya.make @@ -20,6 +20,10 @@ 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() SRCS( |