OSDN Git Service

Watchdog: Print annotated stack trace, if possible
authorAndreas Gampe <agampe@google.com>
Fri, 26 Jan 2018 19:39:46 +0000 (11:39 -0800)
committerAndreas Gampe <agampe@google.com>
Fri, 9 Feb 2018 04:47:24 +0000 (20:47 -0800)
commit544416e7027f9f5e491de56c135f046d88cc48f6
treed1c407310587bf538c6cc862d512a3cd71d1d9a5
parent4c8fa81d177bfd2f144ebe153df74edb8b332f5a
Watchdog: Print annotated stack trace, if possible

Use VMStack.getAnnotatedStackTrace() to print an annotated stack.
Aids in diagnostics of watchdog aborts.

Bug: 70538431
Test: m
Test: art/test/testrunner/testrunner.py -b --host -t 168
Test: runtest -c com.android.server.WatchdogDiagnosticsTest frameworks-services
Test: manual - insert a deadlock into ActivityManagerService
Change-Id: I5bd43920edb8b569240432b6f299e56cabf5ef2a
services/core/java/com/android/server/Watchdog.java
services/core/java/com/android/server/WatchdogDiagnostics.java [new file with mode: 0644]
services/tests/servicestests/src/com/android/server/WatchdogDiagnosticsTest.java [new file with mode: 0644]