commit | 5e8d7112fe5bc3e8edd72af8850167433f7081c0 | [log] [tgz] |
---|---|---|
author | Andrei Onea <andreionea@google.com> | Fri Sep 03 20:00:34 2021 +0000 |
committer | Andrei-Valentin Onea <andreionea@google.com> | Thu Sep 16 13:40:16 2021 +0000 |
tree | f252aae1319377b3b9f3ac0be9a9bb1e77ecb7a6 | |
parent | 2a15391ab98e0e4a07d12e51b96ba80dd65e885e [diff] |
Switch to ConcurrentHashMap for CompatConfig Use ConcurrentHashMap instead of a SparseLongArray guarded by a reentrant readwrite lock to make CompatConfig.isChangeEnabled as fast as possible. Test: atest CompatConfigTest Bug: 197712476 Bug: 191398285 Change-Id: I498c439baf3e060ec7feb68ed581ca680e2ebcad Merged-In: 498c439baf3e060ec7feb68ed581ca680e2ebcad (cherry picked from commit 42090b95e14e1ab92c3123f39cd4e2ebc3b972a3)