OSDN Git Service

Use --oat-fd instead of --oat-file when calling dex2oat.
authorRichard Uhler <ruhler@google.com>
Tue, 13 Oct 2015 23:34:59 +0000 (16:34 -0700)
committerRichard Uhler <ruhler@google.com>
Mon, 26 Oct 2015 22:12:00 +0000 (15:12 -0700)
commit8327cf74d5f87bd64572b56bb8b77bd701adb976
tree45f344d53bd53fda0d0c46c518164864a665a660
parente04f37908bfd72382163c1285853e662373229a2
Use --oat-fd instead of --oat-file when calling dex2oat.

This way we avoid forking and execing dex2oat if the output oat file
is not writeable, and the error messages are slightly better.

Bug: 19937016
Change-Id: I2320f70aa37653b85df40fe1977e09f33789cb8b
runtime/oat_file_assistant.cc
runtime/oat_file_assistant_test.cc