OSDN Git Service

Fix concurrent modification crash in onAlarm
authorJohn Reck <jreck@google.com>
Thu, 23 Feb 2017 01:01:30 +0000 (17:01 -0800)
committerJohn Reck <jreck@google.com>
Thu, 23 Feb 2017 01:19:13 +0000 (17:19 -0800)
commit37dfb429924be4373cc458816fae6d7eec0aa14d
tree88b4b0524421c73357a676c899fb5a62181de734
parentf9bd2944694539f1dce74d420156cc50bbb4af14
Fix concurrent modification crash in onAlarm

Change-Id: Idfd094f3c9ea59356440d6851ccd5abda36ca6ba
Fixes: 35640585
Test: manual; after boot, opened the power menu to force
system_server to spin up a ThreadedRenderer instance
(and thus register itself as a callback on GraphicsStatsService).
Then manually set the date forward by a day to trigger onAlarm
and verified the system didn't reboot/crash. A systrace capture
verified that the alarm fired and package:android (system_server)
had a log rotation event.
services/core/java/com/android/server/GraphicsStatsService.java