diff options
| author | Riddle Hsu <riddlehsu@google.com> | 2019-04-12 16:51:27 +0800 |
|---|---|---|
| committer | Riddle Hsu <riddlehsu@google.com> | 2019-04-12 17:40:08 +0800 |
| commit | fa1eb3a59eed6099fc5375ac459509d0be3de021 (patch) | |
| tree | cf5dd6d457c6bf584344f278c354ee2e395f355a /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
| 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
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions
