mirror of
https://github.com/LineageOS/android_device_xiaomi_whyred.git
synced 2025-10-03 17:59:24 +02:00
whyred: remove unused dalvik heap config
This commit is contained in:
parent
d2b64dd578
commit
1ed02da2c5
1 changed files with 0 additions and 27 deletions
|
@ -28,7 +28,6 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/sysinfo.h>
|
||||
|
||||
#include "vendor_init.h"
|
||||
#include "property_service.h"
|
||||
|
@ -69,23 +68,6 @@ static void init_alarm_boot_properties()
|
|||
}
|
||||
}
|
||||
|
||||
void check_device()
|
||||
{
|
||||
struct sysinfo sys;
|
||||
|
||||
sysinfo(&sys);
|
||||
|
||||
if (sys.totalram > 3072ull * 1024 * 1024) {
|
||||
// from - phone-xxxhdpi-4096-dalvik-heap.mk
|
||||
heapminfree = "4m";
|
||||
heapmaxfree = "16m";
|
||||
} else {
|
||||
// from - phone-xxhdpi-3072-dalvik-heap.mk
|
||||
heapminfree = "512k";
|
||||
heapmaxfree = "8m";
|
||||
}
|
||||
}
|
||||
|
||||
void vendor_load_properties()
|
||||
{
|
||||
std::string platform;
|
||||
|
@ -94,14 +76,5 @@ void vendor_load_properties()
|
|||
if (platform != ANDROID_TARGET)
|
||||
return;
|
||||
|
||||
check_device();
|
||||
|
||||
property_set("dalvik.vm.heapstartsize", "8m");
|
||||
property_set("dalvik.vm.heapgrowthlimit", "256m");
|
||||
property_set("dalvik.vm.heapsize", "512m");
|
||||
property_set("dalvik.vm.heaptargetutilization", "0.75");
|
||||
property_set("dalvik.vm.heapminfree", heapminfree);
|
||||
property_set("dalvik.vm.heapmaxfree", heapmaxfree);
|
||||
|
||||
init_alarm_boot_properties();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue