From 743e250b3010408ec92903f7de009f059c61ffb3 Mon Sep 17 00:00:00 2001 From: Andy McFadden <> Date: Mon, 13 Apr 2009 14:48:35 -0700 Subject: [PATCH] AI 145942: Enable type-precise GC on sapphire builds. Automated import of CL 145942 --- core/main.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/main.mk b/core/main.mk index 04e9728f2..41f0193e2 100644 --- a/core/main.mk +++ b/core/main.mk @@ -201,6 +201,16 @@ else # !sdk ADDITIONAL_BUILD_PROPERTIES += ro.config.sync=yes endif +## precise GC ## + +ifneq ($(filter dalvik.gc.type-precise,$(PRODUCT_TAGS)),) + # Enabling type-precise GC results in larger optimized DEX files. The + # additional storage requirements for ".odex" files can cause /system + # to overflow on some devices, so this is configured separately for + # each product. + ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.dexopt-flags=m=y +endif + # Install an apns-conf.xml file if one's not already being installed. ifeq (,$(filter %:system/etc/apns-conf.xml, $(PRODUCT_COPY_FILES))) PRODUCT_COPY_FILES += \