OSDN Git Service

Fix thread booster
authorJorim Jaggi <jjaggi@google.com>
Fri, 9 Jun 2017 19:00:58 +0000 (12:00 -0700)
committerJorim Jaggi <jjaggi@google.com>
Fri, 9 Jun 2017 19:19:18 +0000 (12:19 -0700)
commit7e12b6d8489f68a43b0afb5111a6cfcddb350679
tree6bc0d90a44981adf7869367ff03fecf3925edefc
parent34a0cdb98eb5561774ea4e7b3b602aad80c4a3cc
Fix thread booster

We need to conditionally set the prevPriority only if we enter
the first locked section. Otherwise we'll never reset back to the
lower priorities.

Test: Make sure no binder threads are stuck at 110.
Test: go/wm-smoke
Bug: 36631902
Change-Id: I8a9c329bc3084371022da91eabee45943c1b8c9f
services/core/java/com/android/server/ThreadPriorityBooster.java