commit | 7571e8b761ebc2c923525e12ea9fcf07e62cb33e | [log] [tgz] |
---|---|---|
author | Brian Carlstrom <bdc@google.com> | Mon Aug 12 17:04:14 2013 -0700 |
committer | Brian Carlstrom <bdc@google.com> | Thu Aug 15 10:33:53 2013 -0700 |
tree | 5d90ecf4d0ba1a72b040a376f227df1ba9278889 | |
parent | 2e250c826b3c405d675017efe79e5db3651c9ee6 [diff] [blame] |
Add flock(2)ing on dex-cache files to prevent races Bug: 9071417 Change-Id: I1ee9ff281867f90fba7a8ed8bbf06b33ac29d511
diff --git a/runtime/utils.cc b/runtime/utils.cc index 87cd21c..6856bb7 100644 --- a/runtime/utils.cc +++ b/runtime/utils.cc
@@ -1229,6 +1229,7 @@ bool IsValidOatFilename(const std::string& filename) { return (EndsWith(filename, ".odex") || + EndsWith(filename, ".dex") || EndsWith(filename, ".oat") || EndsWith(filename, DexFile::kClassesDex)); }