Skip to content

Commit

Permalink
Disable deadlock logs for debugger build (#700) (#710)
Browse files Browse the repository at this point in the history
b/288620270

(cherry picked from commit 63701d0)

Co-authored-by: Sherry Zhou <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and sherryzy authored Jun 27, 2023
1 parent 201b4ee commit 52a8623
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 52a8623

Please sign in to comment.