Files
frameworks_base/services/tests
Riddle Hsu fa1eb3a59e Reduce system calls of ThreadPriorityBooster
- ThreadLocal is bound to each thread, so we don't need to
  get tid every time.
- By storing whether the priority is changed, we don't need
  to get thread priority to decide whether to restore.

The cost of a simple boost region is reduced over 20%.

Test: atest ThreadPriorityBoosterTest
Bug: 123043091
Change-Id: I634898c1bf0d10de4f53fd18043f64d18fe9082b
2019-04-12 17:40:08 +08:00
..
2019-02-26 09:37:43 +00:00