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

Commit b21b2984 authored by Christopher Ferris's avatar Christopher Ferris Committed by Automerger Merge Worker
Browse files

Merge "Switch to purge all unused memory to kernel." am: 2325b1da am:...

Merge "Switch to purge all unused memory to kernel." am: 2325b1da am: 861aa1f9 am: 2a2807c6 am: c503984e am: 26c8c46d

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2461533



Change-Id: Icc98fbe82745ec2762601dc530b299cb51fbf0f6
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 408ef92c 26c8c46d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2296,8 +2296,10 @@ pid_t zygote::ForkCommon(JNIEnv* env, bool is_system_server,
    // region shared with the child process we reduce the number of pages that
    // transition to the private-dirty state when malloc adjusts the meta-data
    // on each of the pages it is managing after the fork.
    if (mallopt(M_PURGE_ALL, 0) != 1) {
      mallopt(M_PURGE, 0);
    }
  }

  pid_t pid = fork();