Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c10f993 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "Set some GC parameters only for dalvik" into cm-11.0

parents 03265022 de453960
Loading
Loading
Loading
Loading
+16 −11
Original line number Diff line number Diff line
@@ -4198,12 +4198,16 @@ public final class ActivityThread {

        Log.d(TAG, "handleBindApplication:" + data.processName );

        String runtime = VMRuntime.getRuntime().vmLibrary();

        String str  = SystemProperties.get("dalvik.vm.heaptargetutilization", "" );
        if( !str.equals("") ){
            float heapUtil = Float.valueOf(str.trim()).floatValue();
            VMRuntime.getRuntime().setTargetHeapUtilization(heapUtil);
            Log.d(TAG, "setTargetHeapUtilization:" + heapUtil );
        }
        // ART currently doesn't support these methods
        if (runtime.equals("libdvm.so")) {
            String heapMinFree = SystemProperties.get("dalvik.vm.heapminfree", "" );
            int minfree =  parseMemOption(heapMinFree);
            if( minfree > 0){
@@ -4216,6 +4220,7 @@ public final class ActivityThread {
                VMRuntime.getRuntime().setTargetHeapConcurrentStart(concurr_start);
                Log.d(TAG, "setTargetHeapConcurrentStart:" + concurr_start );
            }
        }

        ////
        ////If want to set application specific GC paramters, can use