From: Calin Juravle Date: Tue, 19 Apr 2016 17:17:41 +0000 (+0100) Subject: Fix comparison in profile saver X-Git-Tag: android-x86-7.1-r1~45^2~156 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d19dc4688b5b93f149d45435deb0a67217464e37;p=android-x86%2Fart.git Fix comparison in profile saver Bug: 27893309 Change-Id: I076a20413cffc69ca9e562fb4fc75615fead7690 --- diff --git a/runtime/jit/profile_saver.cc b/runtime/jit/profile_saver.cc index 201e4c71c..949215af8 100644 --- a/runtime/jit/profile_saver.cc +++ b/runtime/jit/profile_saver.cc @@ -271,10 +271,10 @@ static bool ShouldProfileLocation(const std::string& location) { return true; } CompilerFilter::Filter filter = oat_file->GetCompilerFilter(); - if (filter == CompilerFilter::kSpeed || CompilerFilter::kEverything) { + if ((filter == CompilerFilter::kSpeed) || (filter == CompilerFilter::kEverything)) { VLOG(profiler) - << "Skip profiling oat file because it's already speed|everything compiled:" - << location; + << "Skip profiling oat file because it's already speed|everything compiled: " + << location << " oat location: " << oat_file->GetLocation(); return false; } return true;