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

Commit 4c3f1e9e authored by Ethan Chen's avatar Ethan Chen
Browse files

Revert "Set some GC parameters only for dalvik"

This reverts commit de453960.

Change-Id: I2fd71b8b8b6e72cdbe929bfc2afe275cb46e6c29
parent ebbacb00
Loading
Loading
Loading
Loading
+11 −16
Original line number Diff line number Diff line
@@ -4200,16 +4200,12 @@ 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){
@@ -4222,7 +4218,6 @@ 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