commit | 42090b95e14e1ab92c3123f39cd4e2ebc3b972a3 | [log] [tgz] |
---|---|---|
author | Andrei Onea <andreionea@google.com> | Fri Sep 03 20:00:34 2021 +0000 |
committer | Andrei Onea <andreionea@google.com> | Wed Sep 15 13:22:12 2021 +0000 |
tree | e32910424fb970e91774fa11ca941130814106f2 | |
parent | 574a6bfeebc0291a20b5379fd45f6ee5c02fe283 [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