From 644789fa0e807a9aa6d6e32d36ce039ec7318a7f Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 10 Apr 2014 13:06:10 -0700 Subject: 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 --- compiler/driver/compiler_driver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index b66082dedd..2b20c6fc75 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; -- cgit v1.2.3-59-g8ed1b