summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2019-04-12 16:51:27 +0800
committerRiddle Hsu <riddlehsu@google.com>2019-04-12 17:40:08 +0800
commitfa1eb3a59eed6099fc5375ac459509d0be3de021 (patch)
treecf5dd6d457c6bf584344f278c354ee2e395f355a /tools/aapt2/java/JavaClassGenerator_test.cpp
parent4f1adafc680df3c8d85b5467f5fa9921b7197346 (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 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions