blob: 0a79b877e3712dede92ee032682ae341a4dd697a [file] [log] [blame]
From 6345ace11db2cbe7c1ed9b2acd194a0f8f2ef9b2 Mon Sep 17 00:00:00 2001
From: Edward Lee <edwarddl@google.com>
Date: Mon, 22 Jul 2024 20:09:09 +0000
Subject: [PATCH] Set NDEBUG to true to avoid DebugOnlyChecks
The problem is that with kDebugMode=true, we perform stack traces in every
mutex lock. This causes issues as coroutines that are yielding execution to
another job do not have correctly setup stack frames.
More information in cl/653791685
Signed-off-by: Edward Lee <edwarddl@google.com>
---
absl/synchronization/mutex.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/absl/synchronization/mutex.cc b/absl/synchronization/mutex.cc
index cb751927..c6893b51 100644
--- a/absl/synchronization/mutex.cc
+++ b/absl/synchronization/mutex.cc
@@ -722,7 +722,7 @@ static const Mutex::MuHow kExclusive = &kExclusiveS; // exclusive lock
#ifdef NDEBUG
static constexpr bool kDebugMode = false;
#else
-static constexpr bool kDebugMode = true;
+static constexpr bool kDebugMode = false;
#endif
#ifdef ABSL_INTERNAL_HAVE_TSAN_INTERFACE
--
2.45.2.1089.g2a221341d9-goog