summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2018-04-18 18:27:07 -0700
committer Calin Juravle <calin@google.com> 2018-04-18 20:04:32 -0700
commitb49dc287fe42575de6fb9a047cdca3c9648b942c (patch)
tree2a9257814ddf98100b85633d6ff63c910b5af25e
parent724e9c8cdb75cd606fe583fd2502783046d62796 (diff)
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
-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;
}