summaryrefslogtreecommitdiffstats
path: root/runtime/thread_list.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2015-03-13 17:21:25 -0700
committerMathieu Chartier <mathieuc@google.com>2015-03-13 17:32:48 -0700
commitbf9fc581e8870faddbd320a935f9a627da724c48 (patch)
tree0a4a6c21fbd4c771b06fac186d32efa6722605b2 /runtime/thread_list.h
parent3d96846b6adedf57be64eb3873de0ca58ec4b827 (diff)
downloadandroid_art-bf9fc581e8870faddbd320a935f9a627da724c48.tar.gz
android_art-bf9fc581e8870faddbd320a935f9a627da724c48.tar.bz2
android_art-bf9fc581e8870faddbd320a935f9a627da724c48.zip
Add more info to who called SuspendAll
Helps diagnose related jank. Change-Id: I38191cdda723c6f0355d0197c494a3dff2b6653c
Diffstat (limited to 'runtime/thread_list.h')
-rw-r--r--runtime/thread_list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/thread_list.h b/runtime/thread_list.h
index de0dd7983c..c18e2858f9 100644
--- a/runtime/thread_list.h
+++ b/runtime/thread_list.h
@@ -61,7 +61,7 @@ class ThreadList {
LOCKS_EXCLUDED(Locks::thread_suspend_count_lock_);
// Suspends all threads and gets exclusive access to the mutator_lock_.
- void SuspendAll()
+ void SuspendAll(const char* cause)
EXCLUSIVE_LOCK_FUNCTION(Locks::mutator_lock_)
LOCKS_EXCLUDED(Locks::thread_list_lock_,
Locks::thread_suspend_count_lock_);