Finish fixing Zygote descriptor leakage problem

In order to prevent Zygote descriptors from leaking into the child
environment, they should be closed by the forked-off child process
before the child switches to the application UID.  These changes close
the descriptors via dup2(), substituting a descriptor open to
/dev/null in their place; this allows the Zygote Java code to close
the FileDescriptor objects cleanly.

This is a multi-project change: dalvik, art, libcore, frameworks/base,
and external/sepolicy are affected.  The CLs need to be approved
together, lest the build break or the software fail to boot.

Round 2: whitespace

Bug: 12114500
Change-Id: I989c83291d0c42d4cad63f24a3e98a93e231c9d3
Remove old fork-and-specialize API

As promised, this is the cleanup patch-set which removes the
old native "fork and specialize" API, which has been replaced
by a slightly-enhanced one which can close the Zygote socket
descriptors in the Zygote child.

Change-Id: I33f504afd242e268863270139b4e421d4b0728f2
dalvik: add placeholder for future changes

add placeholder for future changes

Change-Id: I09dd704a60857de71cafd7e6b64ee750c5cb95b1
Dalvik : Increase the upper limit check for DexOpt Deps table

Increasing upper limit check for the Deps table as additonal
jars added causes the dalvik to crash while performing dexopt
on cached jar files. This is needed for passing cts test case
which is part of libcore.java.util.jar.DalvikExecTest class

Change-Id: I63119dc3e45df19910ae70cedad6109075672d6e
Dalvik :Increase the upper limit check for DexOpt Deps table

Increasing upper limit check for the Deps table as additonal
jars added causes the dalvik to crash while performing dexopt
on cached jar files. This is needed for passing cts test case
which is part of libcore.java.util.jar.DalvikExecTest class

Change-Id: I479d105002f98abd281aeeaa6463fc870a3c86b3
Revert "Change exception message for ArrayStoreException."

Fix all the libcore.java.lang.ArrayStoreExceptionTest failures. Why
are we pulling cosmetic changes from master?

This reverts commit 653ffbf481aa19c4f6c9a358b33d0d812758dfe5.

Change-Id: Icc4d1b40c578a5eef6890e9a03c7b10a96b75c0b
Revert "Use MAP_FIXED in remapNewHeap"

This reverts commit 462bc921aefe3b96e8cc7dae91e234b0e455966c, it
breaks android.openglperf.cts.GlAppSwitchTest#testGlActivitySwitchingFast

Change-Id: Ic153994859f678dbef4328bee5740e21beb735e0
Dalvik :Increase the upper limit check for DexOpt Deps table

Increasing upper limit check for the Deps table as additonal
jars added causes the dalvik to crash while performing dexopt
on cached jar files. This is needed for passing cts test case
which is part of libcore.java.util.jar.DalvikExecTest class

Change-Id: I5431238839712499122eb35132599230d8610de8
CRs-Fixed:621955
Use RETURN_PTR(NULL) instead of RETURN_VOID in newNonMovableArray.

RETURN_VOID doesn't set the return value. This means that we are
returning random garbage when the allocation doesn't succeed.

Bug: 11971220
Change-Id: I570562c7bb9dc573161294916f582709774b35fd
Revert "dalvik: add placeholder for future changes"

 * There are GC issues with this version. Rollback for now.

This reverts commit cdf7a375a8e44fad85e90e7234e561088b20a897.

Change-Id: I983a14a7c39f99427e4a437f1a752fc99db91e28
dalvik: Disable loop hoisting optimization on perf builds

 * Fixes VSCO Cam array traversal crash when perf is enabled.

Change-Id: I57e59e407a538c4cc48972f4cf3167c505d7ded4
Merge tag 'android-4.4.3_r1' into HEAD

Android 4.4.3 release 1
Merge branch 'cm-11.0' into HEAD