OSDN Git Service

ART: Unlink target oat file before compiling
authorAndreas Gampe <agampe@google.com>
Sat, 27 Jun 2015 01:58:42 +0000 (18:58 -0700)
committerAndreas Gampe <agampe@google.com>
Tue, 30 Jun 2015 16:49:59 +0000 (09:49 -0700)
commit4591ae27de90988fbcb9af0c942e633f97ab454e
treec192573c0998bdc7bcc689a0b3c6a24fcbcab3c0
parent6d6b30e57bc00d701c92d830ce47f2ee9c20ef00
ART: Unlink target oat file before compiling

Dex2oat must create a new file (new inode) when writing to a target
given by name, as the existing file may be in use. So unlink any
existing file first.

Bug: 22047255

(cherry picked from commit 52f0aeb8e9f16fa5c3067f6a36be701354448924)

Change-Id: Ief942c71564076e39c1e8340d5c4c55286f75896
dex2oat/dex2oat.cc