commit | 9556bb1250d05c2447ad4694be4e84b319b5aea9 | [log] [tgz] |
---|---|---|
author | Andrei Homescu <ah@immunant.com> | Mon Sep 21 16:59:45 2020 -0700 |
committer | Andrei Homescu <ah@immunant.com> | Tue Sep 22 19:10:09 2020 -0700 |
tree | 6e7bdbb150dcc1e270600c3a41b7a414f3c76763 | |
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