summaryrefslogtreecommitdiffstats
path: root/compiler/driver/compiler_driver.cc
diff options
context:
space:
mode:
authorDave Allison <dallison@google.com>2014-04-10 13:06:10 -0700
committerDave Allison <dallison@google.com>2014-04-10 13:18:18 -0700
commit644789fa0e807a9aa6d6e32d36ce039ec7318a7f (patch)
tree68f41d07551c56ac51c189f26f9fc863c656da83 /compiler/driver/compiler_driver.cc
parente81a7c314afc8f92afcdbc3cbc2331afca7dcb3d (diff)
downloadart-644789fa0e807a9aa6d6e32d36ce039ec7318a7f.zip
art-644789fa0e807a9aa6d6e32d36ce039ec7318a7f.tar.gz
art-644789fa0e807a9aa6d6e32d36ce039ec7318a7f.tar.bz2
Fix problem with empty profiles.
This fixes an issue where a profile file was created by the installer but never written by the runtime. This happens when profiles are off. This caused the compiler to think that there are no methods worthy of compilation and skipped everything. Bug: 13960166 Change-Id: I4c4598d4746218e21ca949112071dc1424d7d1f9
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
-rw-r--r--compiler/driver/compiler_driver.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc
index b66082d..2b20c6f 100644
--- a/compiler/driver/compiler_driver.cc
+++ b/compiler/driver/compiler_driver.cc
@@ -2036,7 +2036,7 @@ void CompilerDriver::InstructionSetToLLVMTarget(InstructionSet instruction_set,
bool CompilerDriver::SkipCompilation(const std::string& method_name) {
if (!profile_ok_) {
- return true;
+ return false;
}
// Methods that comprise topKPercentThreshold % of the total samples will be compiled.
double topKPercentThreshold = 90.0;