OSDN Git Service

JobScheduler blocking main thread.
authorMatthew Williams <mjwilliams@google.com>
Thu, 12 Jun 2014 18:02:34 +0000 (11:02 -0700)
committerMatthew Williams <mjwilliams@google.com>
Thu, 12 Jun 2014 19:40:42 +0000 (12:40 -0700)
commit49a85b64f7c29a5dfbf27112ff22987b85c59338
treee87310afb62f3179c2eb6e529e9e72878562cfa5
parentb8cee5175d7cbc4901bd2d56aa6a380b1464a074
JobScheduler blocking main thread.

Bug:15589789
Fixed deadlock from lock ordering.

Also, before doing I/O we now copy the list of jobs with the lock, but release
the lock before starting the write.

Change-Id: I1ed6141be8fc506abe2684d2894b255c714e29ba
services/core/java/com/android/server/job/JobServiceContext.java
services/core/java/com/android/server/job/JobStore.java