Use HIGH priority to wake blocked timers (cherry-pick #11269) (#11278)
gcp-cherry-pick-bot[bot]
and
Conrad Irwin
created
Cherry-picked Use HIGH priority to wake blocked timers (#11269)
One contributor to some beach-balls was that the main thread was calling
block_with_timeout, but the timeout never fired.
Release Notes:
- Reduced main thread hangs under very high system load
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
@@ -264,7 +264,7 @@ pub async fn post_hang(
Error::Internal(anyhow!(err))
})?;
- let mut backtrace = "Possible hang detected on main threadL".to_string();
+ let mut backtrace = "Possible hang detected on main thread:".to_string();
let unknown = "<unknown>".to_string();
for frame in report.backtrace.iter() {
backtrace.push_str(&format!("\n{}", frame.symbols.first().unwrap_or(&unknown)));