diff options
| author | jackqdyulei <jackqdyulei@google.com> | 2018-11-01 13:10:09 -0700 |
|---|---|---|
| committer | jackqdyulei <jackqdyulei@google.com> | 2018-11-06 16:38:31 -0800 |
| commit | 1eb10eceaeb39b2a5e75774a964e4847a750810d (patch) | |
| tree | cbdad1b954b78678fa71cc6abda1002801759ab4 /rs/java/android/renderscript/RenderScriptCacheDir.java | |
| parent | e3e71ec12415439e4755f17e6a92d5a213c00c70 (diff) | |
Refine the sync in CachedBluetoothDevice
SystemUi uses multi-thread to access CachedBluetoothDevice. If one thread
is traversing the mProfiles while another thread is updating this
mProifles, it will crash with ConcurrentModificationException.
This CL adds lock to mProfiles manually to avoid this case.
Bug: 117122392
Test: Manual
Change-Id: I5d90cd6e35a18f1e782e766b7c448088243d27cf
Diffstat (limited to 'rs/java/android/renderscript/RenderScriptCacheDir.java')
0 files changed, 0 insertions, 0 deletions
