Loading core/java/com/android/internal/os/Zygote.java +4 −0 Original line number Diff line number Diff line Loading @@ -173,6 +173,10 @@ public final class Zygote { VM_HOOKS.postForkChild(debugFlags, isSystemServer, instructionSet); } /** * Resets this process' priority to the default value (0). */ native static void nativeResetNicePriority(); /** * Executes "/system/bin/sh -c <command>" using the exec() system call. Loading core/java/com/android/internal/os/ZygoteInit.java +2 −0 Original line number Diff line number Diff line Loading @@ -712,6 +712,8 @@ public class ZygoteInit { EventLog.writeEvent(LOG_BOOT_PROGRESS_PRELOAD_END, SystemClock.uptimeMillis()); bootTimingsTraceLog.traceEnd(); // ZygotePreload } else { Zygote.nativeResetNicePriority(); } // Finish profiling the zygote initialization. Loading core/jni/com_android_internal_os_Zygote.cpp +7 −1 Original line number Diff line number Diff line Loading @@ -806,6 +806,10 @@ static void com_android_internal_os_Zygote_nativeUnmountStorageOnInit(JNIEnv* en UnmountTree("/storage"); } static void com_android_internal_os_Zygote_nativeResetNicePriority(JNIEnv* env, jclass) { ResetNicePriority(env); } static const JNINativeMethod gMethods[] = { { "nativeForkAndSpecialize", "(II[II[[IILjava/lang/String;Ljava/lang/String;[I[ILjava/lang/String;Ljava/lang/String;)I", Loading @@ -815,7 +819,9 @@ static const JNINativeMethod gMethods[] = { { "nativeAllowFileAcrossFork", "(Ljava/lang/String;)V", (void *) com_android_internal_os_Zygote_nativeAllowFileAcrossFork }, { "nativeUnmountStorageOnInit", "()V", (void *) com_android_internal_os_Zygote_nativeUnmountStorageOnInit } (void *) com_android_internal_os_Zygote_nativeUnmountStorageOnInit }, { "nativeResetNicePriority", "()V", (void *) com_android_internal_os_Zygote_nativeResetNicePriority } }; int register_com_android_internal_os_Zygote(JNIEnv* env) { Loading Loading
core/java/com/android/internal/os/Zygote.java +4 −0 Original line number Diff line number Diff line Loading @@ -173,6 +173,10 @@ public final class Zygote { VM_HOOKS.postForkChild(debugFlags, isSystemServer, instructionSet); } /** * Resets this process' priority to the default value (0). */ native static void nativeResetNicePriority(); /** * Executes "/system/bin/sh -c <command>" using the exec() system call. Loading
core/java/com/android/internal/os/ZygoteInit.java +2 −0 Original line number Diff line number Diff line Loading @@ -712,6 +712,8 @@ public class ZygoteInit { EventLog.writeEvent(LOG_BOOT_PROGRESS_PRELOAD_END, SystemClock.uptimeMillis()); bootTimingsTraceLog.traceEnd(); // ZygotePreload } else { Zygote.nativeResetNicePriority(); } // Finish profiling the zygote initialization. Loading
core/jni/com_android_internal_os_Zygote.cpp +7 −1 Original line number Diff line number Diff line Loading @@ -806,6 +806,10 @@ static void com_android_internal_os_Zygote_nativeUnmountStorageOnInit(JNIEnv* en UnmountTree("/storage"); } static void com_android_internal_os_Zygote_nativeResetNicePriority(JNIEnv* env, jclass) { ResetNicePriority(env); } static const JNINativeMethod gMethods[] = { { "nativeForkAndSpecialize", "(II[II[[IILjava/lang/String;Ljava/lang/String;[I[ILjava/lang/String;Ljava/lang/String;)I", Loading @@ -815,7 +819,9 @@ static const JNINativeMethod gMethods[] = { { "nativeAllowFileAcrossFork", "(Ljava/lang/String;)V", (void *) com_android_internal_os_Zygote_nativeAllowFileAcrossFork }, { "nativeUnmountStorageOnInit", "()V", (void *) com_android_internal_os_Zygote_nativeUnmountStorageOnInit } (void *) com_android_internal_os_Zygote_nativeUnmountStorageOnInit }, { "nativeResetNicePriority", "()V", (void *) com_android_internal_os_Zygote_nativeResetNicePriority } }; int register_com_android_internal_os_Zygote(JNIEnv* env) { Loading