Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit deda74a9 authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

Guard access to SparseArray

SparseArray is not thread safe, and the bg dispatchers are
multi-threaded. Guard access in the following way:

* Use a double check lock when possibly creating it and returning it for
  tileSpecs
* Use a single lock and possibly return null if retrieving for
  operations (this is the same behavior as we had before).

Test: manual, tiles work
Test: manual, multi-user
Test: atest TileSpecSettingsRepositoryTest
Flag: EXEMPT bugfix
Fixes: 413289323
Change-Id: I6de31a59701f1e07b18fbc575b897134446444eb
parent 9ae9bad4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment