From 1ed02da2c54df8d6ea713db3dbcbd82f95f29771 Mon Sep 17 00:00:00 2001 From: xiaobai Date: Fri, 22 Sep 2017 23:57:05 +0800 Subject: [PATCH] whyred: remove unused dalvik heap config --- init/init_sagit.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/init/init_sagit.cpp b/init/init_sagit.cpp index 2f0ba32..e61d680 100644 --- a/init/init_sagit.cpp +++ b/init/init_sagit.cpp @@ -28,7 +28,6 @@ #include #include -#include #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(); }