From 217e789288d5a321460ea2399e0eb7f3af6fc91b Mon Sep 17 00:00:00 2001 From: buzbee Date: Wed, 5 Feb 2014 18:26:04 -0800 Subject: Avoid compiling monster methods in boot image The Quick compiler normally avoids compiling extremely large methods (which are usually auto-generated initialization routines) because they take too long to compile, and generally aren't executed frequently enough to benefit from compilation. However, we'd previously compiled even large methods in the boot image - because it is normally cross-compiled on the host. However, we are currently compiling it on the target in some situations. This change moves the default for image creation from "compile everything" to "compile most things". Change-Id: If096e1ae5db2e3a394880e36e19607358e77d677 --- dex2oat/dex2oat.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc index afa849580c..ec2713afbf 100644 --- a/dex2oat/dex2oat.cc +++ b/dex2oat/dex2oat.cc @@ -993,7 +993,7 @@ static int dex2oat(int argc, char** argv) { if (compiler_filter_string == NULL) { if (image) { - compiler_filter_string = "everything"; + compiler_filter_string = "speed"; } else { #if ART_SMALL_MODE compiler_filter_string = "interpret-only"; -- cgit v1.2.3