diff options
| author | Orion Hodson <oth@google.com> | 2018-10-31 08:19:45 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2018-10-31 08:19:45 -0700 |
| commit | 1bd83da389e323bedee528b0001eeaefbf998ca6 (patch) | |
| tree | 37d41154f06b8d42f90f32945f2aeb7d9c5f0691 /core/java | |
| parent | 316902da9b78279f362068168c2facc4e154df47 (diff) | |
| parent | 4bff3b4fb662b657b7092aed15c84bef526c26b4 (diff) | |
Merge "Add post fork hook for System Server" am: f2a342b3ab am: a58c2a07c1
am: 4bff3b4fb6
Change-Id: Ia97204dbf4aeaa97d08601aab6bd761cd5cfcea3
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/com/android/internal/os/Zygote.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/com/android/internal/os/Zygote.java b/core/java/com/android/internal/os/Zygote.java index 98b7b5d28779..65213c0a1085 100644 --- a/core/java/com/android/internal/os/Zygote.java +++ b/core/java/com/android/internal/os/Zygote.java @@ -216,6 +216,11 @@ public final class Zygote { */ native protected static void nativeUnmountStorageOnInit(); + private static void callPostForkSystemServerHooks() { + // SystemServer specific post fork hooks run before child post fork hooks. + VM_HOOKS.postForkSystemServer(); + } + private static void callPostForkChildHooks(int runtimeFlags, boolean isSystemServer, boolean isZygote, String instructionSet) { VM_HOOKS.postForkChild(runtimeFlags, isSystemServer, isZygote, instructionSet); |
