msm8937-common: init: Add dalvik heap for 4GB variant
Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
This commit is contained in:
parent
53d08d831c
commit
b0f6df42e7
1 changed files with 9 additions and 1 deletions
|
@ -96,7 +96,15 @@ void check_device()
|
||||||
|
|
||||||
sysinfo(&sys);
|
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
|
// from - phone-xxhdpi-3072-dalvik-heap.mk
|
||||||
heapstartsize = "8m";
|
heapstartsize = "8m";
|
||||||
heapgrowthlimit = "288m";
|
heapgrowthlimit = "288m";
|
||||||
|
|
Loading…
Reference in a new issue