OSDN Git Service

Use FdFile::Copy() in dex2oat for better error checking.
authorVladimir Marko <vmarko@google.com>
Mon, 17 Oct 2016 14:25:10 +0000 (15:25 +0100)
committerVladimir Marko <vmarko@google.com>
Mon, 17 Oct 2016 14:41:29 +0000 (15:41 +0100)
commitb55cc6df451e7653baf6f49dce1f2a0c03ba4bc6
treed2334ab9ebcd59b45ad25848ff27e1d51595383c
parenta3344e8349b6abf2d31d8b973627248706382970
Use FdFile::Copy() in dex2oat for better error checking.

Previously, read errors would have been silently ignored
and write errors would ungracefully crash.

Also improves performance on Linux, including Android,
by using sendfile(). (We still keep Mac builds around.)

Test: m test-art-host
Change-Id: I689e8b9fee4595c42b353bd10042b60a7d6c1bc7
dex2oat/dex2oat.cc