OSDN Git Service

Adds Zygote.initNativeState
authorChris Wailes <chriswailes@google.com>
Wed, 3 Apr 2019 20:00:52 +0000 (13:00 -0700)
committerChris Wailes <chriswailes@google.com>
Wed, 3 Apr 2019 20:42:35 +0000 (13:42 -0700)
commit6d482d541e9600437d08fbf7b18e06bc160aca25
tree30c853fa662209264b2937f9264dd19623d70358
parent86b7528ed393635e312401db37ce591c29a07f60
Adds Zygote.initNativeState

This patch replaces three seperate native initialization functions with
a single function, reducing the number of times we need to cross the JNI
boundary.  In addition this loads an empty performance profile for the
zygote to address b/129704892.

Bug: 129704892
Test: make & boot
Test: Treehugger
Change-Id: I0413f554e0963a714e0b4de3196d31ffe6775a3a
core/java/com/android/internal/os/Zygote.java
core/java/com/android/internal/os/ZygoteInit.java
core/jni/com_android_internal_os_Zygote.cpp