diff options
| author | 2023-10-17 13:10:36 -0700 | |
|---|---|---|
| committer | 2023-10-17 21:58:43 +0000 | |
| commit | 6284ee7ead2aeec31a55ecab7506e8a6c1f903c3 (patch) | |
| tree | 4de7c68b6c73cb3150ce6bfbab84a3853ac83989 /libs/androidfw/FileStream.cpp | |
| parent | 779139ddfbd98326dcdd55a48921379a542348fa (diff) | |
[SettingsProvider] do not write under mLock
persistSyncLocked() is called when holding the SettingsProvider lock.
It writes to disk synchronously, which can sometimes take long. This
blocks future reads that also tries to acquire the lock and causes SysUI
jankiness. This CL changes the synchronous write to async, just like any
other write operations in SettingsProvider.
BUG: 284452689
Test: atest com.android.providers.settings.SettingsStateTest
Change-Id: I318c4c6f358dbaa227cb53019db93f262ed10443
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions