commit | a3e611ae14ec906d6565a00e0c640f151e501b1a | [log] [tgz] |
---|---|---|
author | Seth Moore <sethmo@google.com> | Tue May 11 10:07:45 2021 -0700 |
committer | Seth Moore <sethmo@google.com> | Tue May 11 11:56:30 2021 -0700 |
tree | b548e1ebb287a0a3a79041ac1e14edf98dcc0417 | |
parent | 7708000c11b2c6ffbbbd7b170b5b54ba544dbbdc [diff] |
Use a RwLock for DB_PATH The return value of DB_PATH.lock() was being borrowed, which holds the lock for the duration of the borrow. This is not itself a major problem, but if anything else blocked DB object initialization, other threads could be blocked for a long time until initialization completes. Bug: 184006658 Test: KeyStoreTest Change-Id: I585b40b8770b90fe80d6591157525eed0b5124c3