summaryrefslogtreecommitdiffstats
path: root/dexoptanalyzer
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2018-04-18 18:27:07 -0700
committerCalin Juravle <calin@google.com>2018-04-18 18:30:48 -0700
commit103bd381adeb62822e5a52f44f1d26bb56843271 (patch)
tree9a097db7c59951ade030213b5e8567a6590cba0a /dexoptanalyzer
parent99ebc264162a8cfc6c0298ce7a1739d4b050f1e3 (diff)
downloadart-103bd381adeb62822e5a52f44f1d26bb56843271.tar.gz
art-103bd381adeb62822e5a52f44f1d26bb56843271.tar.bz2
art-103bd381adeb62822e5a52f44f1d26bb56843271.zip
Remove dexoptanalyzer fast file check
We mostly use FDs nowadays and this may cause selinux denials for symlinks. Bug: 77853712 Test: test-art-host-gtest-dexoptanalyzer_test Change-Id: I0e33ac3f85ae8f9194219d3da764a77ad7bf1d6f
Diffstat (limited to 'dexoptanalyzer')
-rw-r--r--dexoptanalyzer/dexoptanalyzer.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/dexoptanalyzer/dexoptanalyzer.cc b/dexoptanalyzer/dexoptanalyzer.cc
index febccf1950..871cd081e7 100644
--- a/dexoptanalyzer/dexoptanalyzer.cc
+++ b/dexoptanalyzer/dexoptanalyzer.cc
@@ -247,11 +247,6 @@ class DexoptAnalyzer FINAL {
}
int GetDexOptNeeded() {
- // If the file does not exist there's nothing to do.
- // This is a fast path to avoid creating the runtime (b/34385298).
- if (!OS::FileExists(dex_file_.c_str())) {
- return kNoDexOptNeeded;
- }
if (!CreateRuntime()) {
return kErrorCannotCreateRuntime;
}