From 4bcbbe50ab5c85c5b988fe8bcf46895c850cc4ca Mon Sep 17 00:00:00 2001 From: Hans Boehm Date: Fri, 24 Jan 2025 13:42:17 -0800 Subject: Extend suspend timeout for debug activities Extend the debugging suspend timeout substantially if it appears we are running concurrently with an ANR dump. There is some concern that we may be regularly getting suspend timeouts because too many cycles are devoted to an ANR dump at the time. Extend it almost indefinitely if the cuplrit thread is in a tracing stop 't' state. This makes debugging slightly easier, and should reduce the number of spurious bug reports we have to process. Add GetOsThreadStatQuick test and include minimal test for GetStateFromStatString. Bug: 330444460 Bug: 392053307 Test: Treehugger Change-Id: I820e7283fda84fa9fd9820ff9948b992e10547ec --- runtime/runtime.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/runtime.cc') diff --git a/runtime/runtime.cc b/runtime/runtime.cc index a16bde3469..e2c30d619c 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -2450,8 +2450,8 @@ void Runtime::DumpDeoptimizations(std::ostream& os) { } } -std::optional Runtime::SiqQuitNanoTime() const { - return signal_catcher_ != nullptr ? signal_catcher_->SiqQuitNanoTime() : std::nullopt; +std::optional Runtime::SigQuitNanoTime() const { + return signal_catcher_ != nullptr ? signal_catcher_->SigQuitNanoTime() : std::nullopt; } void Runtime::DumpForSigQuit(std::ostream& os) { -- cgit v1.2.3-59-g8ed1b