diff options
| author | Brian Carlstrom <bdc@google.com> | 2013-08-15 10:48:00 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2013-08-15 10:48:00 -0700 |
| commit | 7d70a7932f0ba09eb01a93caab060aef1403d4e6 (patch) | |
| tree | bebdc566198709c150199e54343fb4afac962e60 /oatdump | |
| parent | fbb0ba491042a7f8fb38f51b2f0538ca8fd074a6 (diff) | |
| parent | 3e78664ffa63f3a01b0769a57409933a82648b4a (diff) | |
| download | art-7d70a7932f0ba09eb01a93caab060aef1403d4e6.tar.gz art-7d70a7932f0ba09eb01a93caab060aef1403d4e6.tar.bz2 art-7d70a7932f0ba09eb01a93caab060aef1403d4e6.zip | |
am 3e78664f: am f8dc6489: am 7571e8b7: Add flock(2)ing on dex-cache files to prevent races
* commit '3e78664ffa63f3a01b0769a57409933a82648b4a':
Add flock(2)ing on dex-cache files to prevent races
Diffstat (limited to 'oatdump')
| -rw-r--r-- | oatdump/oatdump.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc index 67398afd5f..fbfdfd9e8d 100644 --- a/oatdump/oatdump.cc +++ b/oatdump/oatdump.cc @@ -777,7 +777,7 @@ class ImageDumper { os_ = saved_os; } os << "STATS:\n" << std::flush; - UniquePtr<File> file(OS::OpenFile(image_filename_.c_str(), false)); + UniquePtr<File> file(OS::OpenFileForReading(image_filename_.c_str())); stats_.file_bytes = file->GetLength(); size_t header_bytes = sizeof(ImageHeader); stats_.header_bytes = header_bytes; |
