dalvik: fix a bug in redundant branch elimination

Change-Id: Ic6e85b3d45499ae772d92d346f35a4c6c979b4f1
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
Removed excessive GC freed lines instead disable them

CM has introduced a method to disable GC freed lines by setting dalvik.vm.debug.alloc to 0. See http://review.cyanogenmod.org/#/c/45785/
Now I doubt whether this method is effective or even could make the dalvik performance worse than before.
This method checks the property of dalvik.vm.debug.alloc and convert the property value from string to integer everytime before dalvik writes debug line to logcat.
It is probably better to let dalvik to do only one operation to write debug line rather than to do two operations:
* Looking a property from a map that could contains hundred of properties
* Converting property value from string to integer
Since Heap.cpp is not a class, we cannot have a member variable that holds the dalvik.vm.debug.alloc value by reading it only once.

Remove the debug lines together with other information that are used in the debug line.

Change-Id: I164584bc3f53e5471a2e194125a867fd244a5774
GC triggering performance optimizations

Copy the correct starting heap size at process init.
Interfaces to set GC/managed heap parameters.

Change-Id: I454b1985a3225d7dbdea9c5d4e6f0c9f5e24352e