commit | 49891ca89a43c22353f2fca3c7a3ba411aa5fe97 | [log] [tgz] |
---|---|---|
author | Yu Shan <shanyu@google.com> | Thu Feb 09 13:38:17 2023 -0800 |
committer | Yu Shan <shanyu@google.com> | Tue Feb 21 23:00:23 2023 +0000 |
tree | a7be25c93ed56cb5e2b53ca0455d5273642152ec | |
parent | 17eecdc352b3e311325fc73771be9342604ce4c5 [diff] |
Limit sync operation to be 16 at-a-time. If we do not limit sync operation count. They might use up all the binder threads and all be blocked, while there is no thread left for callback to arrive to unblock them. The number 16 is just arbitrally picked. It just need to be less than 31 so not all threads are blocked. Test: atest CarPropertyServiceUnitTest CarPropertyManagerTest Bug: 268533181 Change-Id: I5fa521097b3fd28139c64d59e4a5d9ca6cebc6d3 Merged-In: I5fa521097b3fd28139c64d59e4a5d9ca6cebc6d3 (cherry picked from commit 2a94a2be0ff2682768a92e17d7dd2e08c6b3c3bc)
Source code for Android Automotive OS.
car_product/ - AAOS product car-builtin-lib/ - A helper library for CarService to access hidden framework APIs car-lib/ - Car API car-lib-module/ - Car API module cpp/ - Native services experimental/ - Experimental Car API and services packages/ - Apps and services for cars service/ - Car service module service-builint - Platform builtin component that runs CarService module tests/ - Tests and sample apps tools/ - Helper scripts
Native (C++) code format is required to be compatible with .clang-format file. The formatter is already integrated to repo
tool. To run manually, use:
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.