94774ac01d
The previous configuration sets target utilization as .25, which is geared towards low memory devices. This path increases it to .75 and makes us pass the check: (heaptargetutilization / 2) * heapsize = heapgrowthlimit Example: heapgrowthlimit: 256m heapsize: 512m heaptargetutilization: 0.75 0.75/2 * 512 = 192 To pass the check this has to be true: 192 = 256 (WRONG) Check not passed. This new configuration is optimized for higher RAM devices and passes the check: heapgrowthlimit: 384m heapsize: 1024m heaptargetutilization: 0.75 0.75/2 * 1024 = 384 384 = 384 (TRUE) Check passed. Change-Id: I6839339382229da80546761c3746a032081ff2cd Signed-off-by: Alex Naidis <alex.naidis@linux.com>
26 lines
900 B
Makefile
26 lines
900 B
Makefile
#
|
|
# Copyright (C) 2016 The CyanogenMod Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
# Provides overrides to configure the Dalvik heap for a 4G phone
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
dalvik.vm.heapstartsize=8m \
|
|
dalvik.vm.heapgrowthlimit=384m \
|
|
dalvik.vm.heapsize=1024m \
|
|
dalvik.vm.heaptargetutilization=0.75 \
|
|
dalvik.vm.heapminfree=4m \
|
|
dalvik.vm.heapmaxfree=16m
|