msm8937-common: init: Add dalvik heap for 4GB variant

Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
This commit is contained in:
Darshan Manjrekar 2017-08-05 19:26:14 +02:00 committed by Isaac Chen
parent 53d08d831c
commit b0f6df42e7

View file

@ -96,7 +96,15 @@ void check_device()
sysinfo(&sys);
if (sys.totalram > 2048ull * 1024 * 1024) {
if (sys.totalram > 3072ull * 1024 * 1024) {
// from - phone-xxhdpi-4096-dalvik-heap.mk
heapstartsize = "16m";
heapgrowthlimit = "256m";
heapsize = "512m";
heapminfree = "4m";
heapmaxfree = "8m";
large_cache_height = "2048";
} else if (sys.totalram > 2048ull * 1024 * 1024) {
// from - phone-xxhdpi-3072-dalvik-heap.mk
heapstartsize = "8m";
heapgrowthlimit = "288m";