OSDN Git Service

Added fsync call to dexopt.
authorAndy McFadden <fadden@android.com>
Mon, 16 Aug 2010 23:14:06 +0000 (16:14 -0700)
committerAndy McFadden <fadden@android.com>
Mon, 16 Aug 2010 23:14:06 +0000 (16:14 -0700)
commitc650d2beb66896c0cf51f737d7a39476630dd142
tree91c4c17b8d9f92c8e14ac9ae70620ecd7d8b99ee
parent10a548d86ad1ef83fa6fc69c71ea20e06ba45184
Added fsync call to dexopt.

If various system-level things go wrong you might end up with a
correctly-written .odex header but an incomplete file, which ideally
would never happen.  This adds an fsync() call before we write the
header to make this less likely.

Change-Id: Ie5ac67dc7185ca9a4995710688e1219e46477c12
vm/Thread.c
vm/analysis/DexPrepare.c