OSDN Git Service

Try to mitigate issue #31016187: system_server crash in ArraySet.
authorDianne Hackborn <hackbod@google.com>
Wed, 24 Aug 2016 21:54:20 +0000 (14:54 -0700)
committerAkshay Thakker <aksh@google.com>
Thu, 25 Aug 2016 19:49:41 +0000 (19:49 +0000)
commitdd28b7b5f33810666919e2f9fc8deb27b7b9c169
tree666d4d1bd67e0646857b2e70704d52b10e0d8a6e
parent77a9ef952ccfe0897dddb32844f99c0f6b24b510
Try to mitigate issue #31016187: system_server crash in ArraySet.

Instead of crashing, log a wtf and recover.  This is not a problem
in ArraySet, but caused by someone else using an ArraySet without
protecting access to it.  So whoever is calling at this point is
not the cause, and it isn't worthwhile to let them crash.

Change-Id: Iaefa4315b620c9fe24b31507e4aa47a8525c8540
(cherry picked from commit 92aa4b2ba3c93cc344c885b50b75726599e6065d)
core/java/android/util/ArraySet.java