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

Commit 117ba186 authored by Mathieu Chartier's avatar Mathieu Chartier Committed by android-build-merger
Browse files

Merge "Call VMRuntime.clampGrowthLimit for small heap apps"

automerge: 9a6c45ee

* commit '9a6c45ee':
  Call VMRuntime.clampGrowthLimit for small heap apps
parents c04a21a0 9a6c45ee
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4481,6 +4481,10 @@ public final class ActivityThread {

        if ((data.appInfo.flags&ApplicationInfo.FLAG_LARGE_HEAP) != 0) {
            dalvik.system.VMRuntime.getRuntime().clearGrowthLimit();
        } else {
            // Small heap, clamp to the current growth limit and let the heap release
            // pages after the growth limit to the non growth limit capacity. b/18387825
            dalvik.system.VMRuntime.getRuntime().clampGrowthLimit();
        }

        // Allow disk access during application and provider setup. This could