OSDN Git Service

Keep oat file unique pointers until they are no longer used.
authorJeff Hao <jeffhao@google.com>
Tue, 26 Apr 2016 21:27:31 +0000 (14:27 -0700)
committerJeff Hao <jeffhao@google.com>
Tue, 26 Apr 2016 21:41:25 +0000 (14:41 -0700)
commita6d46161aea07ebd1cbd6ab78b2b323f940e9c1e
tree18de0870af465659dbfb7f15b8332d57cd414bce
parent6ea2193ce448a543731c66b455fdcfa0b24a1847
Keep oat file unique pointers until they are no longer used.

Before, the unique pointer would be deleted before we were finished
using the dex file we opened from the oat file.

Bug: 28359191
Change-Id: Ia6c5e687b0a5b8884e74573a11f34df2979afa84
dex2oat/dex2oat.cc