OSDN Git Service

dex2oat: Use CLOCK_MONOTONIC, not REALTIME for a watchdog!
authorChristopher R. Palmer <crpalmer@gmail.com>
Fri, 2 Dec 2016 21:04:07 +0000 (16:04 -0500)
committerMichael Bestas <mikeioannina@gmail.com>
Sat, 31 Dec 2016 21:43:06 +0000 (23:43 +0200)
commit773e16b98cb8ca2000eaeaf49f239f39ac51d562
treebdac0298c77ad1dc6d0e3580c7b6382995c80e9e
parent24ef6fe4e98363a97d0a729673d27ffebaed7cb2
dex2oat: Use CLOCK_MONOTONIC, not REALTIME for a watchdog!

Prior to this commit, dex2oat was using the realtime clock to determine
whether or not to kill dex2oat when it ran too long.

This causes problems when the time on the system changes during dex2oat.

In particular, on victara, the time daemon would start up during dex2oat
of boot.art which causes that critical dex2oat operation to fail on boot.

Change-Id: I8be1e09479006bf0692bb9b29f3eab2d140096bb

dex2oat: Fix compilation of host binary on Mac due to watchdog fix

Change-Id: I2628349ff56fdcde86499ef9b0b9b15d382dbbf6
dex2oat/dex2oat.cc