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.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/runtime.h') diff --git a/runtime/runtime.h b/runtime/runtime.h index e43d1d3432..63a0707424 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -314,7 +314,7 @@ class Runtime { void DetachCurrentThread(bool should_run_callbacks = true) REQUIRES(!Locks::mutator_lock_); // If we are handling SIQQUIT return the time when we received it. - std::optional SiqQuitNanoTime() const; + std::optional SigQuitNanoTime() const; void DumpDeoptimizations(std::ostream& os); void DumpForSigQuit(std::ostream& os); -- cgit v1.2.3-59-g8ed1b