Enable boost-locked-region-priority
Enable jack.transformations.boost-locked-region-priority compiler pass
that had shown to increase performance in AmSlam by 10% or so.
bug: 28610549
Change-Id: If1b76787acd272882647ede7e831cb1ba376e578
diff --git a/services/core/Android.mk b/services/core/Android.mk
index 860f60a..b965ce3 100644
--- a/services/core/Android.mk
+++ b/services/core/Android.mk
@@ -24,4 +24,10 @@
LOCAL_JACK_ENABLED := incremental
endif
+LOCAL_JACK_FLAGS := \
+ -D jack.transformations.boost-locked-region-priority=true \
+ -D jack.transformations.boost-locked-region-priority.classname=com.android.server.am.ActivityManagerService \
+ -D jack.transformations.boost-locked-region-priority.request=com.android.server.am.ActivityManagerService\#boostPriorityForLockedSection \
+ -D jack.transformations.boost-locked-region-priority.reset=com.android.server.am.ActivityManagerService\#resetPriorityAfterLockedSection
+
include $(BUILD_STATIC_JAVA_LIBRARY)