Scale stack dump timeout with HW_TIMEOUT_MULTIPLIER.

HWASan builds often fail to complete stack dump in time.

Bug: 193568145
Test: am hang; look for "ActivityManager: Done dumping" in logcat
Change-Id: Ied3a2def89cb1bb5c6a9d51ddf8fb112cb0b4133
This commit is contained in:
Evgenii Stepanov
2021-07-15 17:05:50 -07:00
parent 1f5ba0b268
commit 83b2f7d875

View File

@@ -4133,7 +4133,7 @@ public class ActivityManagerService extends IActivityManager.Stub
// control of all writes to the file in question.
// We must complete all stack dumps within 20 seconds.
long remainingTime = 20 * 1000;
long remainingTime = 20 * 1000 * Build.HW_TIMEOUT_MULTIPLIER;
// As applications are usually interested with the ANR stack traces, but we can't share with
// them the stack traces other than their own stacks. So after the very first PID is