From 63701d0add7e6096e42552330d868bf6adba41b5 Mon Sep 17 00:00:00 2001 From: Sherry Zhou <128753035+sherryzy@users.noreply.github.com> Date: Mon, 26 Jun 2023 10:54:19 -0700 Subject: [PATCH] Disable deadlock logs for debugger build (#700) b/288620270 --- base/single_thread_task_runner.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/base/single_thread_task_runner.cc b/base/single_thread_task_runner.cc index 2a937223408d..3c1d832ad793 100644 --- a/base/single_thread_task_runner.cc +++ b/base/single_thread_task_runner.cc @@ -53,8 +53,10 @@ void SingleThreadTaskRunner::PostBlockingTask(const base::Location& from_here, break; } #if !defined(COBALT_BUILD_TYPE_GOLD) - base::debug::StackTrace trace; - trace.PrintWithPrefix("[task runner deadlock]"); + if (!SbSystemIsDebuggerAttached()) { + base::debug::StackTrace trace; + trace.PrintWithPrefix("[task runner deadlock]"); + } #endif // !defined(COBALT_BUILD_TYPE_GOLD) } while (true); }