From 97fa9928c07d3e0ee631235e9619fb0f8949ed7a Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 9 Mar 2017 13:13:25 +0000 Subject: Do not allow input-vdex with dexlayout. input-vdex and dexlayout are incompatible with each other. bug: 36084905 bug: 36076104 bug: 36059948 bug: 35872504 Test: device boots, vdex works on OTA, input-vdex is not passed for speed-profile. Change-Id: I630c90acf0a8f49f50b7909e2dec995dd4a4d13f --- compiler/driver/compiler_driver.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compiler/driver/compiler_driver.cc') diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 057e3c9960..995098799c 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -480,7 +480,9 @@ static void Unquicken(const std::vector& dex_files, DCHECK(!it.HasNext()); } } - DCHECK_EQ(quickening_info_ptr, quickening_info_end) << "Failed to use all quickening info"; + if (quickening_info_ptr != quickening_info_end) { + LOG(FATAL) << "Failed to use all quickening info"; + } } void CompilerDriver::CompileAll(jobject class_loader, -- cgit v1.2.3-59-g8ed1b