Skip to content

Commit

Permalink
Disable deadlock logs for debugger build (youtube#700)
Browse files Browse the repository at this point in the history
b/288620270
  • Loading branch information
sherryzy committed Jun 26, 2023
1 parent 79e149d commit 63701d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions base/single_thread_task_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 63701d0

Please sign in to comment.