diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-03-13 17:21:25 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-03-13 17:32:48 -0700 |
commit | bf9fc581e8870faddbd320a935f9a627da724c48 (patch) | |
tree | 0a4a6c21fbd4c771b06fac186d32efa6722605b2 /runtime/thread_list.h | |
parent | 3d96846b6adedf57be64eb3873de0ca58ec4b827 (diff) | |
download | android_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.h | 2 |
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_); |