Shared state modified in two threads without synchronization
The method overrideConfig(int, PersistableBundle, boolean) directly
modifies the shared states (both mOverrideConfigs and
mPersistentOverrideConfigs) in IPC thread without synchronization.
To avoid the data race, the operations that modify shared states
are posted to handler thread on which all states are designed to
be confined.
Bug: 1624359
Test: atest com.android.phone.CarrierConfigLoaderTest
Change-Id: I950772f0000e84ec67208c647353513308567393
1 file changed