diff options
author | Brian Carlstrom <bdc@google.com> | 2013-08-12 17:04:14 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-08-15 10:33:53 -0700 |
commit | 7571e8b761ebc2c923525e12ea9fcf07e62cb33e (patch) | |
tree | 5d90ecf4d0ba1a72b040a376f227df1ba9278889 /compiler/sea_ir | |
parent | 2e250c826b3c405d675017efe79e5db3651c9ee6 (diff) | |
download | art-7571e8b761ebc2c923525e12ea9fcf07e62cb33e.zip art-7571e8b761ebc2c923525e12ea9fcf07e62cb33e.tar.gz art-7571e8b761ebc2c923525e12ea9fcf07e62cb33e.tar.bz2 |
Add flock(2)ing on dex-cache files to prevent races
Bug: 9071417
Change-Id: I1ee9ff281867f90fba7a8ed8bbf06b33ac29d511
Diffstat (limited to 'compiler/sea_ir')
-rw-r--r-- | compiler/sea_ir/debug/dot_gen.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sea_ir/debug/dot_gen.h b/compiler/sea_ir/debug/dot_gen.h index 675d83d..5270582 100644 --- a/compiler/sea_ir/debug/dot_gen.h +++ b/compiler/sea_ir/debug/dot_gen.h @@ -103,7 +103,7 @@ class DotConversion { LOG(INFO) << "Starting to write SEA string to file."; DotGenerationVisitor dgv = DotGenerationVisitor(&options_, types); graph->Accept(&dgv); - art::File* file = art::OS::OpenFile(filename.c_str(), true, true); + art::File* file = art::OS::OpenFile(filename.c_str(), O_RDWR | O_CREAT | O_TRUNC); art::FileOutputStream fos(file); std::string graph_as_string = dgv.GetResult(); graph_as_string += "}"; |