OSDN Git Service

Introduced additional lock - dbLock
authorFyodor Kupolov <fkupolov@google.com>
Tue, 28 Mar 2017 00:02:11 +0000 (17:02 -0700)
committerFyodor Kupolov <fkupolov@google.com>
Tue, 28 Mar 2017 00:55:33 +0000 (17:55 -0700)
commit8cd927d8ea08cba89ac02dfd50ed42b486bd7f53
treef2639f779326c440ce2708db9ec5f280818e15bc
parent55bea5e30808856eb039d74e2fa7e06ee0dd05e7
Introduced additional lock - dbLock

Right now it is always used with cacheLock. In the future, we will be
adding optimizations to reduce cacheLock contention by only holding it
when updating the cache.

This change is non-functional and doesn't change the current locking
contract

Test: Manual + AccountManagerServiceTest
Bug: 36485175
Change-Id: Iebc437463958d33b32fc1273a84680c22ac60825
services/core/java/com/android/server/accounts/AccountManagerBackupHelper.java
services/core/java/com/android/server/accounts/AccountManagerService.java