From 9fdd87d7e443e96f93f868aa7298269b1db9445e Mon Sep 17 00:00:00 2001 From: Martin Stjernholm Date: Mon, 22 Nov 2021 19:05:17 +0000 Subject: [PATCH] Do not pass --compiler-filter=speed-profile with --profile-file. It is the default, and hence unnecessary to pass explicitly. This allows some other compiler filter to be passed through BootFlags. Test: m out/host/linux-x86/apex/art_boot_images/javalib/x86_64/boot.oat on master-art and check that it doesn't change Test: m droid on master and check that out/soong/.intermediates/art/build/apex/com.android.art/android_common_com.android.art_image/image.apex/javalib/x86_64/boot.oat and out/target/product/vsoc_x86_64/system/framework/x86_64/boot-framework.oat are identical. Bug: 174746397 Change-Id: Ie281e55aaa641d5fd8dcc5c7e201c7870cc934c1 --- java/dexpreopt_bootjars.go | 1 - 1 file changed, 1 deletion(-) diff --git a/java/dexpreopt_bootjars.go b/java/dexpreopt_bootjars.go index 284a19a1f..a72294626 100644 --- a/java/dexpreopt_bootjars.go +++ b/java/dexpreopt_bootjars.go @@ -625,7 +625,6 @@ func buildBootImageVariant(ctx android.ModuleContext, image *bootImageVariant, p Flag("--runtime-arg").FlagWithArg("-Xmx", global.Dex2oatImageXmx) if profile != nil { - cmd.FlagWithArg("--compiler-filter=", "speed-profile") cmd.FlagWithInput("--profile-file=", profile) }