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

Skip to content
Commit 7fba4991 authored by Paul Hu's avatar Paul Hu Committed by android-build-team Robot
Browse files

Replace ArrayList with a CopyOnWriteArrayList

RegularMaintenanceJobService use same ArrayList on both
omComplete and onStopJob methods, it's unsafe and will cause
ConcurrentModificationException when reading and removing
value at same time. Thus, replace ArrayList with
a CopyOnWriteArrayList.

Bug: 161205152
Test: atest NetworkStackTests
Change-Id: I3914e9ddc05e37d4deaa8846d7c3ba742160a788
Merged-In: I3914e9ddc05e37d4deaa8846d7c3ba742160a788
(cherry picked from commit 389735f7, aosp/1366998)
(cherry picked from commit 9b2ffb6a)
parent 7814d22e
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