diff options
author | Narayan Kamath <narayan@google.com> | 2014-10-07 12:51:26 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-11-07 12:51:48 +0000 |
commit | a0b34518cf3f3801407624d95846f8ff90c05d25 (patch) | |
tree | 1f1df690f6018c415215792a96cb7c7ded9dd9fd /compiler/optimizing/graph_visualizer.h | |
parent | 88af00a788002196e6f98acd3748f3f4956032bf (diff) |
Fix thread priorities for unstarted threads.
Calls to Thread.setPriority for unstarted threads now behave
similar to dalvik. Note that there's still some inconsistent
behaviour carried over from dalvik.
- high priority threads from bg_non_interactive processes are
not always moved to the SP_FOREGROUND cgroup.
- we do not attempt to adjust the cgroup of a native thread
that's attaching.
Note that on android, the system_server will change the
cgroups for all running threads in a process when it moves
into the foreground and background. It's by design that
threads in a background process can request to be moved
to the foreground by setting a higher priority.
bug: 17893086
(cherry picked from commit 1bd326a5e2aaff06a5bcae9cb2c42a4e8de31401)
Change-Id: Iad362f7c5c8697c349f2b6d7fcba69a4e141883e
Diffstat (limited to 'compiler/optimizing/graph_visualizer.h')
0 files changed, 0 insertions, 0 deletions