summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Shunta Sato <shunta.sato@sonymobile.com> 2017-06-13 16:16:13 +0900
committer Julia Reynolds <juliacr@google.com> 2017-06-14 10:44:50 -0400
commit642b8d4d8f1ecd5612fcde0913cd9d295c6996f6 (patch)
tree120b736d8b97046a485ed64238d476e8e2bb6dee /cmds/bootanimation/BootAnimation.cpp
parentd27d5d9ea8cd50d82d0cc9d332439535da1c1962 (diff)
Make RankingHelper$Record.groups thread-safe
Symptom: System crash is happened due to NPE at RankingHelper.writeXml. Root cause: RankingHelper$Record.groups.values() returned null. Record.groups is an ArrayMap and this is not thread-safe. When multiple clients call NotificationManager#createNotificationChannelGroup and deleteNotificationChannelGroup at a same time, Record.groups is changed by multiple threads simultaneously. As a result, this ArrayMap object gets broken. Solution: Use ConcurrentHashMap instead of ArrayMap. Test: runtest systemui-notification, test app Bug: 62557189 Author: Tetsutoki Shiozawa <tetsutoki.shiozawa@sony.com> Change-Id: I2261dbd1ace4915695528595b9d14d68e5bec55d
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions