From b49dc287fe42575de6fb9a047cdca3c9648b942c Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Wed, 18 Apr 2018 18:27:07 -0700 Subject: 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 --- dexoptanalyzer/dexoptanalyzer.cc | 5 ----- 1 file changed, 5 deletions(-) (limited to 'dexoptanalyzer/dexoptanalyzer.cc') 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; } -- cgit v1.2.3-59-g8ed1b