rosemary: init: group dalvik property initialization together

This commit is contained in:
Demon000
2021-10-10 16:17:57 +01:00
committed by Matsvei Niaverau
parent 984575d584
commit f78c9685dd

View File

@@ -30,15 +30,14 @@
using android::base::GetProperty;
using android::init::property_set;
char const *heapstartsize;
char const *heapgrowthlimit;
char const *heapsize;
char const *heapminfree;
char const *heapmaxfree;
char const *heaptargetutilization;
void check_device()
void load_dalvik_properties()
{
char const *heapstartsize;
char const *heapgrowthlimit;
char const *heapsize;
char const *heapminfree;
char const *heapmaxfree;
char const *heaptargetutilization;
struct sysinfo sys;
sysinfo(&sys);
@@ -68,11 +67,6 @@ void check_device()
heapminfree = "512k";
heapmaxfree = "8m";
}
}
void vendor_load_properties()
{
check_device();
property_set("dalvik.vm.heapstartsize", heapstartsize);
property_set("dalvik.vm.heapgrowthlimit", heapgrowthlimit);
@@ -81,3 +75,8 @@ void vendor_load_properties()
property_set("dalvik.vm.heapminfree", heapminfree);
property_set("dalvik.vm.heapmaxfree", heapmaxfree);
}
void vendor_load_properties()
{
load_dalvik_properties();
}