OSDN Git Service

Call method while holding lock.
authorCraig Mautner <cmautner@google.com>
Mon, 4 Aug 2014 16:46:31 +0000 (09:46 -0700)
committerCraig Mautner <cmautner@google.com>
Mon, 4 Aug 2014 16:46:31 +0000 (09:46 -0700)
commitcc9537ce558de42577feebeb91a8cc72e102ae2e
tree67d575ae088111586597278c13a837915a9b2292
parentcb566aab57cafb69c628809fc0a0ffa2151c7d6e
Call method while holding lock.

The method removeRecentTasksForUser() was being called without the
ActivityManagerService lock held. This change calles it while the
lock is held and renames it to indicate that it should be called
while holding the lock.

Fixes bug 16775111.

Change-Id: I002f9f96d407de458934da8bc728acd54f0c398c
services/core/java/com/android/server/am/ActivityManagerService.java