commit | fa1eb3a59eed6099fc5375ac459509d0be3de021 | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Fri Apr 12 16:51:27 2019 +0800 |
committer | Riddle Hsu <riddlehsu@google.com> | Fri Apr 12 17:40:08 2019 +0800 |
tree | cf5dd6d457c6bf584344f278c354ee2e395f355a | |
parent | 4f1adafc680df3c8d85b5467f5fa9921b7197346 [diff] |
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