commit | d1c606f280797be81e2592c483869a6ec836a9f3 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Mon Jun 09 16:50:19 2014 +0100 |
committer | Narayan Kamath <narayan@google.com> | Tue Jun 10 11:25:06 2014 +0100 |
tree | f49689281100d0fccdc5493f1a2567b435a247ea | |
parent | fbc2b1747e7e3d06f214f801f53218a1d4bf2dbe [diff] |
Add locking around boot image generation. If zygote aborts due to an error, it will restart and spawn another dex2oat process while the old one is still running. If this happens fast enough, the system will eventually need a kernel reboot since neither the zygote nor dex2oat are killable. This brings boot image generation in line with dex2oat generation, which uses a similar pattern of advisory locking. bug: 15415316 Change-Id: Iaccd274d3d96ab002b04e246ec4b3ef9a422ff7c