diff options
| author | 2020-09-21 16:59:45 -0700 | |
|---|---|---|
| committer | 2020-09-22 19:10:09 -0700 | |
| commit | 9556bb1250d05c2447ad4694be4e84b319b5aea9 (patch) | |
| tree | 6e7bdbb150dcc1e270600c3a41b7a414f3c76763 /libs/gui/BufferQueueThreadState.cpp | |
| parent | 3dd6b0f059582ae404cce29cb66b4fe45a7d27ce (diff) | |
Lock accesses to mClazz in AIBinder with a mutex
The associateClass method mutates the mClazz member of AIBinder in a
non-thread-safe way. This patch fixes this problem by adding a
std::mutex locking that variable, fixing test flakiness in the Rust
tests for the AIDL compiler
Test: atest libbinder_ndk_unit_test binderVendorDoubleLoadTest CtsNdkBinderTestCases
Test: atest aidl_integration_test for AIDL Rust tests
Change-Id: I4b0ec21755a9995c1f591ab937e9a3280992be80
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions