revert:GC triggering performance optimizations

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

Change-Id: Ib2a01da093341e8a9c09469a88ffb5de2b454586
Tweaks for forward compatibility

Change-Id: I00fa775e0e2831925ef0f9b8b1cc6d8b8dcafc6c
frameworks/native/opengl: Fix build with gcc 4.8

In gcc 4.8, the warning for unused parameters (such as JNIEnv* pointers
in JNI functions that don't need it) is enabled by default - causing
-Werror to break the build.

Change-Id: Ia5c54280b7d0a0a09870324b456d9706aac1da88