OSDN Git Service

Fix comparison in profile saver
authorCalin Juravle <calin@google.com>
Tue, 19 Apr 2016 17:17:41 +0000 (18:17 +0100)
committerCalin Juravle <calin@google.com>
Tue, 19 Apr 2016 17:17:41 +0000 (18:17 +0100)
Bug: 27893309
Change-Id: I076a20413cffc69ca9e562fb4fc75615fead7690

runtime/jit/profile_saver.cc

index 201e4c7..949215a 100644 (file)
@@ -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;