From e0099d4d4839cabfb26270a746580e9d4ec3a6c6 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Tue, 27 May 2014 14:43:03 -0700 Subject: ART: Fix sharpening across dex files Bug: 15196336 Change-Id: If4301bcddce0ddbc60bb33403e4a76eed35bcb2f --- compiler/driver/compiler_driver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/driver/compiler_driver.cc') diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 330456180b..8d4e2838a1 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -1135,7 +1135,7 @@ void CompilerDriver::GetCodeAndMethodForDirectCall(InvokeType* type, InvokeType if (dex_method_idx != DexFile::kDexNoIndex) { target_method->dex_method_index = dex_method_idx; } else { - if (compiling_boot) { + if (compiling_boot && !use_dex_cache) { target_method->dex_method_index = method->GetDexMethodIndex(); target_method->dex_file = method->GetDeclaringClass()->GetDexCache()->GetDexFile(); } -- cgit v1.2.3-59-g8ed1b